github.com/MetalBlockchain/metalgo@v1.11.9/codec/linearcodec/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 linearcodec 5 6 import ( 7 "testing" 8 9 "github.com/MetalBlockchain/metalgo/codec" 10 ) 11 12 func TestVectors(t *testing.T) { 13 for _, test := range codec.Tests { 14 c := NewDefault() 15 test(c, t) 16 } 17 } 18 19 func TestMultipleTags(t *testing.T) { 20 for _, test := range codec.MultipleTagsTests { 21 c := New([]string{"tag1", "tag2"}) 22 test(c, t) 23 } 24 } 25 26 func FuzzStructUnmarshalLinearCodec(f *testing.F) { 27 c := NewDefault() 28 codec.FuzzStructUnmarshal(c, f) 29 }