diff --git a/data_psi_test.go b/data_psi_test.go index a452222..ec51114 100644 --- a/data_psi_test.go +++ b/data_psi_test.go @@ -2,12 +2,22 @@ package astits import ( "bytes" + "encoding/hex" + "strings" "testing" "github.com/asticode/go-astikit" "github.com/stretchr/testify/assert" ) +func hexToBytes(in string) []byte { + o, err := hex.DecodeString(strings.ReplaceAll(in, "\n", "")) + if err != nil { + panic(err) + } + return o +} + var psi = &PSIData{ PointerField: 4, Sections: []*PSISection{