MCPcopy
hub / github.com/segmentio/kafka-go / testWriterClose

Function testWriterClose

writer_test.go:212–224  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

210}
211
212func testWriterClose(t *testing.T) {
213 const topic = "test-writer-0"
214 createTopic(t, topic, 1)
215 defer deleteTopic(t, topic)
216
217 w := newTestWriter(WriterConfig{
218 Topic: topic,
219 })
220
221 if err := w.Close(); err != nil {
222 t.Error(err)
223 }
224}
225
226func testWriterRequiredAcksNone(t *testing.T) {
227 topic := makeTopic()

Callers

nothing calls this directly

Calls 5

createTopicFunction · 0.85
deleteTopicFunction · 0.85
newTestWriterFunction · 0.85
CloseMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected