package examples import ( "testing" "github.com/stretchr/testify/assert" "edge-infra.dev/test/snapshot" ) func TestBytes(t *testing.T) { byteValue := GetBytes() snapshot.Snap(t, byteValue) } func TestStruct(t *testing.T) { result, err := BytesToStruct() assert.NoError(t, err) snapshot.Snap(t, result) }