From 8d3ef0924a71c254ab47e5516bbb8b91e175234e Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Fri, 15 Nov 2019 12:07:13 +0100 Subject: [PATCH] core/state: remove unused function xTestFuzzCutter --- core/state/state_object_test.go | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/core/state/state_object_test.go b/core/state/state_object_test.go index 5ab69c6545..42fd778025 100644 --- a/core/state/state_object_test.go +++ b/core/state/state_object_test.go @@ -18,10 +18,7 @@ package state import ( "bytes" - "fmt" - "math/rand" "testing" - "time" "github.com/ethereum/go-ethereum/common" ) @@ -47,22 +44,3 @@ func BenchmarkCutCustomTrim(b *testing.B) { common.TrimLeftZeroes(value[:]) } } - -func xTestFuzzCutter(t *testing.T) { - rand.Seed(time.Now().Unix()) - for { - v := make([]byte, 20) - zeroes := rand.Intn(21) - rand.Read(v[zeroes:]) - exp := bytes.TrimLeft(v[:], "\x00") - got := common.TrimLeftZeroes(v) - if !bytes.Equal(exp, got) { - - fmt.Printf("Input %x\n", v) - fmt.Printf("Exp %x\n", exp) - fmt.Printf("Got %x\n", got) - t.Fatalf("Error") - } - //break - } -}