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

Function TestEndTxnRequest

protocol/endtxn/endtxn_test.go:10–19  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

8)
9
10func TestEndTxnRequest(t *testing.T) {
11 for _, version := range []int16{0, 1, 2, 3} {
12 prototest.TestRequest(t, version, &endtxn.Request{
13 TransactionalID: "transactional-id-1",
14 ProducerID: 1,
15 ProducerEpoch: 100,
16 Committed: false,
17 })
18 }
19}
20
21func TestEndTxnResponse(t *testing.T) {
22 for _, version := range []int16{0, 1, 2, 3} {

Callers

nothing calls this directly

Calls 1

TestRequestFunction · 0.92

Tested by

no test coverage detected