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

Function TestRealFlexibleDecoderGetInt32Array

real_decoder_test.go:192–199  ·  view source on GitHub ↗

getInt32Array only diverges from getNullableInt32Array on null input

(t *testing.T)

Source from the content-addressed store, hash-verified

190
191// getInt32Array only diverges from getNullableInt32Array on null input
192func TestRealFlexibleDecoderGetInt32Array(t *testing.T) {
193 t.Run("returns errInvalidArrayLength for null array", func(t *testing.T) {
194 rd := &realFlexibleDecoder{&realDecoder{raw: []byte{0x00}}}
195 got, err := rd.getInt32Array()
196 require.ErrorIs(t, err, errInvalidArrayLength)
197 assert.Nil(t, got)
198 })
199}
200
201func TestRealFlexibleDecoderGetNullableInt64Array(t *testing.T) {
202 tests := []struct {

Callers

nothing calls this directly

Calls 2

getInt32ArrayMethod · 0.95
RunMethod · 0.80

Tested by

no test coverage detected