MCPcopy Create free account
hub / github.com/IBM/sarama / TestRealFlexibleDecoderGetInt64Array

Function TestRealFlexibleDecoderGetInt64Array

real_decoder_test.go:254–261  ·  view source on GitHub ↗

getInt64Array only diverges from getNullableInt64Array on null input

(t *testing.T)

Source from the content-addressed store, hash-verified

252
253// getInt64Array only diverges from getNullableInt64Array on null input
254func TestRealFlexibleDecoderGetInt64Array(t *testing.T) {
255 t.Run("returns errInvalidArrayLength for null array", func(t *testing.T) {
256 rd := &realFlexibleDecoder{&realDecoder{raw: []byte{0x00}}}
257 got, err := rd.getInt64Array()
258 require.ErrorIs(t, err, errInvalidArrayLength)
259 assert.Nil(t, got)
260 })
261}

Callers

nothing calls this directly

Calls 2

getInt64ArrayMethod · 0.95
RunMethod · 0.80

Tested by

no test coverage detected