diff options
author | Felix Lange <fjl@twurst.com> | 2014-10-30 01:38:52 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2014-10-30 01:38:52 +0800 |
commit | 56014844a960ea59f18e3d6b4662a7674ac9c78d (patch) | |
tree | 5fbcc1b0a763d14be5e1ab8ad62eda5e6d8f5458 | |
parent | d9bccdde234f2493722d8fadfffecc5ef2e27b9b (diff) | |
download | go-tangerine-56014844a960ea59f18e3d6b4662a7674ac9c78d.tar go-tangerine-56014844a960ea59f18e3d6b4662a7674ac9c78d.tar.gz go-tangerine-56014844a960ea59f18e3d6b4662a7674ac9c78d.tar.bz2 go-tangerine-56014844a960ea59f18e3d6b4662a7674ac9c78d.tar.lz go-tangerine-56014844a960ea59f18e3d6b4662a7674ac9c78d.tar.xz go-tangerine-56014844a960ea59f18e3d6b4662a7674ac9c78d.tar.zst go-tangerine-56014844a960ea59f18e3d6b4662a7674ac9c78d.zip |
ethpipe: delete useless test
It didn't compile and wouldn't have checked any results if it ever ran.
-rw-r--r-- | ethpipe/pipe_test.go | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/ethpipe/pipe_test.go b/ethpipe/pipe_test.go deleted file mode 100644 index 3b5dc5e4c..000000000 --- a/ethpipe/pipe_test.go +++ /dev/null @@ -1,58 +0,0 @@ -package ethpipe - -import ( - "testing" - - "github.com/ethereum/go-ethereum/ethcrypto" - "github.com/ethereum/go-ethereum/ethstate" - "github.com/ethereum/go-ethereum/ethutil" -) - -func Val(v interface{}) *ethutil.Value { - return ethutil.NewValue(v) -} - -func TestNew(t *testing.T) { - pipe := New(nil) - - var addr, privy, recp, data []byte - var object *ethstate.StateObject - var key *ethcrypto.KeyPair - - world := pipe.World() - world.Get(addr) - world.Coinbase() - world.IsMining() - world.IsListening() - world.State() - peers := world.Peers() - peers.Len() - - // Shortcut functions - pipe.Balance(addr) - pipe.Nonce(addr) - pipe.Block(addr) - pipe.Storage(addr, addr) - pipe.ToAddress(privy) - pipe.Exists(addr) - // Doesn't change state - pipe.Execute(addr, nil, Val(0), Val(1000000), Val(10)) - // Doesn't change state - pipe.ExecuteObject(object, nil, Val(0), Val(1000000), Val(10)) - - conf := world.Config() - namereg := conf.Get("NameReg") - namereg.Storage(addr) - - var err error - // Transact - err = pipe.Transact(key, recp, ethutil.NewValue(0), ethutil.NewValue(0), ethutil.NewValue(0), nil) - if err != nil { - t.Error(err) - } - // Create - err = pipe.Transact(key, nil, ethutil.NewValue(0), ethutil.NewValue(0), ethutil.NewValue(0), data) - if err != nil { - t.Error(err) - } -} |