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

Function TestOffsetFetchResponseNullMetadata

offset_fetch_response_test.go:111–120  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

109}
110
111func TestOffsetFetchResponseNullMetadata(t *testing.T) {
112 response := &OffsetFetchResponse{}
113 err := versionedDecode(offsetFetchResponseV0NullMetadata, response, 0, nil)
114 require.NoError(t, err)
115
116 block := response.GetBlock("t", 0)
117 require.NotNil(t, block)
118 assert.Empty(t, block.Metadata)
119 assert.Equal(t, ErrRequestTimedOut, block.Err)
120}
121
122func TestNormalOffsetFetchResponse(t *testing.T) {
123 // The response encoded form cannot be checked for it varies due to

Callers

nothing calls this directly

Calls 2

GetBlockMethod · 0.95
versionedDecodeFunction · 0.85

Tested by

no test coverage detected