(m *testing.M)
| 10 | ) |
| 11 | |
| 12 | func TestMain(m *testing.M) { |
| 13 | if os.Getenv("KAFKA_ADDR") != "" { |
| 14 | setupTopic(os.Getenv("KAFKA_ADDR")) |
| 15 | } |
| 16 | os.Exit(m.Run()) |
| 17 | } |
| 18 | |
| 19 | func setupTopic(addr string) { |
| 20 | topics := []string{"trace", "test", "example"} |
nothing calls this directly
no test coverage detected