aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2014-11-12 02:05:23 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2014-11-12 02:05:23 +0800
commitd9ccbf04dbdcda527c00e561aa0cc97ffde08f86 (patch)
treeddb135c993d391a76d0ab4cec8dd2612b954a838
parentcd94b5ffb3c29d72d87c6cd7e439868e11e24b8d (diff)
downloadgo-tangerine-d9ccbf04dbdcda527c00e561aa0cc97ffde08f86.tar
go-tangerine-d9ccbf04dbdcda527c00e561aa0cc97ffde08f86.tar.gz
go-tangerine-d9ccbf04dbdcda527c00e561aa0cc97ffde08f86.tar.bz2
go-tangerine-d9ccbf04dbdcda527c00e561aa0cc97ffde08f86.tar.lz
go-tangerine-d9ccbf04dbdcda527c00e561aa0cc97ffde08f86.tar.xz
go-tangerine-d9ccbf04dbdcda527c00e561aa0cc97ffde08f86.tar.zst
go-tangerine-d9ccbf04dbdcda527c00e561aa0cc97ffde08f86.zip
Move test bootstrap to main_test.go
-rw-r--r--ethutil/main_test.go8
-rw-r--r--ethutil/size_test.go8
-rw-r--r--ethutil/value_test.go3
3 files changed, 14 insertions, 5 deletions
diff --git a/ethutil/main_test.go b/ethutil/main_test.go
new file mode 100644
index 000000000..94f34677d
--- /dev/null
+++ b/ethutil/main_test.go
@@ -0,0 +1,8 @@
+package ethutil
+
+import (
+ checker "gopkg.in/check.v1"
+ "testing"
+)
+
+func Test(t *testing.T) { checker.TestingT(t) }
diff --git a/ethutil/size_test.go b/ethutil/size_test.go
index 9127521cb..098e41cd4 100644
--- a/ethutil/size_test.go
+++ b/ethutil/size_test.go
@@ -1,10 +1,14 @@
package ethutil
import (
- "testing"
+ checker "gopkg.in/check.v1"
)
-func TestStorageSizeString(t *testing.T) {
+type SizeSuite struct{}
+
+var _ = checker.Suite(&SizeSuite{})
+
+func (s *SizeSuite) TestStorageSizeString(c *checker.C) {
data1 := 2381273
data2 := 2192
data3 := 12
diff --git a/ethutil/value_test.go b/ethutil/value_test.go
index 1c62d3e20..7c58d3b56 100644
--- a/ethutil/value_test.go
+++ b/ethutil/value_test.go
@@ -3,11 +3,8 @@ package ethutil
import (
checker "gopkg.in/check.v1"
"math/big"
- "testing"
)
-func Test(t *testing.T) { checker.TestingT(t) }
-
type ValueSuite struct{}
var _ = checker.Suite(&ValueSuite{})