diff options
author | Felix Lange <fjl@twurst.com> | 2017-01-06 23:55:03 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2017-01-07 01:18:07 +0800 |
commit | 13e3b2f433c48fe81423c1a13e9a5194ece61b01 (patch) | |
tree | 19ff7c32597a41bbfe7ccc0d32ecaed05d0e6132 /errs/errors_test.go | |
parent | f2da6581ba827a2aab091f764ace8017b26450d8 (diff) | |
download | dexon-13e3b2f433c48fe81423c1a13e9a5194ece61b01.tar dexon-13e3b2f433c48fe81423c1a13e9a5194ece61b01.tar.gz dexon-13e3b2f433c48fe81423c1a13e9a5194ece61b01.tar.bz2 dexon-13e3b2f433c48fe81423c1a13e9a5194ece61b01.tar.lz dexon-13e3b2f433c48fe81423c1a13e9a5194ece61b01.tar.xz dexon-13e3b2f433c48fe81423c1a13e9a5194ece61b01.tar.zst dexon-13e3b2f433c48fe81423c1a13e9a5194ece61b01.zip |
logger, pow/dagger, pow/ezp: delete dead code
Diffstat (limited to 'errs/errors_test.go')
-rw-r--r-- | errs/errors_test.go | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/errs/errors_test.go b/errs/errors_test.go index d6d14b45e..5a2ffbec3 100644 --- a/errs/errors_test.go +++ b/errs/errors_test.go @@ -19,8 +19,6 @@ package errs import ( "fmt" "testing" - - "github.com/ethereum/go-ethereum/logger" ) func testErrors() *Errors { @@ -30,14 +28,6 @@ func testErrors() *Errors { 0: "zero", 1: "one", }, - Level: func(i int) (l logger.LogLevel) { - if i == 0 { - l = logger.ErrorLevel - } else { - l = logger.WarnLevel - } - return - }, } } @@ -49,14 +39,3 @@ func TestErrorMessage(t *testing.T) { t.Errorf("error message incorrect. expected %v, got %v", exp, message) } } - -func TestErrorSeverity(t *testing.T) { - err0 := testErrors().New(0, "zero detail") - if !err0.Fatal() { - t.Errorf("error should be fatal") - } - err1 := testErrors().New(1, "one detail") - if err1.Fatal() { - t.Errorf("error should not be fatal") - } -} |