github.com/hamba/avro@v1.8.0/codec_skip_internal_test.go (about) 1 package avro 2 3 import ( 4 "testing" 5 6 "github.com/stretchr/testify/assert" 7 ) 8 9 func TestCreateSkipDecoder_UnsupportedType(t *testing.T) { 10 schema := NewPrimitiveSchema(Type("test"), nil) 11 12 dec := createSkipDecoder(schema) 13 14 assert.IsType(t, &errorDecoder{}, dec) 15 }