package errs import ( "fmt" "testing" "github.com/ethereum/go-ethereum/logger" ) func testErrors() *Errors { return &Errors{ Package: "TEST", Errors: map[int]string{ 0: "zero", 1: "one", }, Level: func(i int) (l logger.LogLevel) { if i == 0 { l = logger.ErrorLevel } else { l = logger.WarnLevel } return }, } } func TestErrorMessage(t *testing.T) { err := testErrors().New(0, "zero detail %v", "available") message := fmt.Sprintf("%v", err) exp := "[TEST] ERROR: zero: zero detail available" if message != exp { 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") } } id='cgit'>
aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks/netperf
Commit message (Expand)AuthorAgeFilesLines
* Enable OMNI by default; this matches what vanilla netperf does sincemarius2015-01-281-3/+3
* Cleanup plistbapt2014-10-201-1/+0
* - Fix check-plist by adding missing netperf.info filebdrewery2014-08-121-1/+3
* Support stagebapt2014-01-052-7/+6
* Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-201-0/+1
* - Given that we always build netperf with --enable-demo, remove anmarius2013-01-312-1/+14
* - Fix build with clang [1]pawel2013-01-032-10/+11
* - Update to use OPTIONSNGsumikawa2012-11-121-16/+15
* Upgrade to 2.6.0sumikawa2012-08-245-75/+15
* 1) Add OPTIONS support for:sumikawa2012-05-152-4/+73
* Make UDP_STREAM work on IPv6 by transmitting and extracting IPv6sumikawa2012-01-272-0/+70
* Remove more tags from pkg-descr files fo the form:dougb2011-10-241-2/+0
* Upgrade to 2.5.0.sumikawa2011-07-203-13/+3
* - Get Rid MD5 supportmiwi2011-03-191-1/+0
* Upgrade to 2.4.5.sumikawa2009-06-164-10/+20
* Upgrade to 2.4.4.sumikawa2008-03-032-10/+5
* Fix pkg-plist.sumikawa2006-11-202-1/+2
* Fix plist.sumikawa2006-11-152-11/+19
* Upgrade to 2.4.2.sumikawa2006-11-0921-233/+69
* SHA256ifyedwin2006-01-22