OSDN Git Service

Thanos did someting
[bytom/vapor.git] / testutil / hex.go
diff --git a/testutil/hex.go b/testutil/hex.go
deleted file mode 100644 (file)
index 137e0b2..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-package testutil
-
-import (
-       "bytes"
-       "io"
-       "testing"
-
-       "github.com/vapor/protocol/bc"
-)
-
-func MustDecodeHash(s string) (h bc.Hash) {
-       if err := h.UnmarshalText([]byte(s)); err != nil {
-               panic(err)
-       }
-       return h
-}
-
-func MustDecodeAsset(s string) (h bc.AssetID) {
-       if err := h.UnmarshalText([]byte(s)); err != nil {
-               panic(err)
-       }
-       return h
-}
-
-func Serialize(t *testing.T, wt io.WriterTo) []byte {
-       var b bytes.Buffer
-       if _, err := wt.WriteTo(&b); err != nil {
-               t.Fatal(err)
-       }
-       return b.Bytes()
-}