1 package examples 2 3 import ( 4 "testing" 5 6 "github.com/stretchr/testify/assert" 7 8 "edge-infra.dev/test/snapshot" 9 ) 10 11 func TestBytes(t *testing.T) { 12 byteValue := GetBytes() 13 snapshot.Snap(t, byteValue) 14 } 15 16 func TestStruct(t *testing.T) { 17 result, err := BytesToStruct() 18 assert.NoError(t, err) 19 snapshot.Snap(t, result) 20 } 21