(m *testing.M)
| 49 | ) |
| 50 | |
| 51 | func TestMain(m *testing.M) { |
| 52 | // Functional tests for Sarama |
| 53 | // |
| 54 | // You can either set TOXIPROXY_ADDR, which points at a toxiproxy address |
| 55 | // already set up with 21801-21805 bound to zookeeper and 29091-29095 |
| 56 | // bound to kafka. Alternatively, if TOXIPROXY_ADDR is not set, we'll try |
| 57 | // and use Docker to bring up a 5-node zookeeper cluster & 5-node kafka |
| 58 | // cluster, with toxiproxy configured as above. |
| 59 | // |
| 60 | // In either case, the following topics will be deleted (if they exist) and |
| 61 | // then created/pre-seeded with data for the functional test run: |
| 62 | // * uncommitted-topic-test-4 |
| 63 | // * test.1 |
| 64 | // * test.4 |
| 65 | // * test.64 |
| 66 | os.Exit(testMain(m)) |
| 67 | } |
| 68 | |
| 69 | func testMain(m *testing.M) int { |
| 70 | ctx := context.Background() |
nothing calls this directly
no test coverage detected