github.com/ava-labs/avalanchego@v1.11.11/codec/hierarchycodec/codec_test.go (about) 1 // Copyright (C) 2019-2024, Ava Labs, Inc. All rights reserved. 2 // See the file LICENSE for licensing terms. 3 4 package hierarchycodec 5 6 import ( 7 "testing" 8 9 "github.com/ava-labs/avalanchego/codec" 10 "github.com/ava-labs/avalanchego/codec/codectest" 11 ) 12 13 func TestVectors(t *testing.T) { 14 codectest.RunAll(t, func() codec.GeneralCodec { 15 return NewDefault() 16 }) 17 } 18 19 func TestMultipleTags(t *testing.T) { 20 codectest.RunAllMultipleTags(t, func() codec.GeneralCodec { 21 return New([]string{"tag1", "tag2"}) 22 }) 23 } 24 25 func FuzzStructUnmarshalHierarchyCodec(f *testing.F) { 26 c := NewDefault() 27 codectest.FuzzStructUnmarshal(c, f) 28 }