(config WriterConfig)
| 203 | } |
| 204 | |
| 205 | func newTestWriter(config WriterConfig) *Writer { |
| 206 | if len(config.Brokers) == 0 { |
| 207 | config.Brokers = []string{"localhost:9092"} |
| 208 | } |
| 209 | return NewWriter(config) |
| 210 | } |
| 211 | |
| 212 | func testWriterClose(t *testing.T) { |
| 213 | const topic = "test-writer-0" |
no test coverage detected