package utxobuild_test import ( "encoding/hex" "fmt" "path/filepath" "strings" "testing" ) // testdataPath is a captured body, under testdata/xbt for the fork's chain. func testdataPath(chain string, h uint32) string { return filepath.Join("testdata", chain, fmt.Sprintf("body-%03d.hex", h)) } func mustDecodeHex(t *testing.T, raw []byte) []byte { t.Helper() b, err := hex.DecodeString(strings.TrimSpace(string(raw))) if err != nil { t.Fatal(err) } return b }