MCPcopy
hub / github.com/IBM/sarama / TestMain

Function TestMain

functional_test.go:51–67  ·  view source on GitHub ↗
(m *testing.M)

Source from the content-addressed store, hash-verified

49)
50
51func 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
69func testMain(m *testing.M) int {
70 ctx := context.Background()

Callers

nothing calls this directly

Calls 1

testMainFunction · 0.85

Tested by

no test coverage detected