tests, signer: remove staticcheck warnings (#20364)

This commit is contained in:
Guillaume Ballet
2019-11-23 12:51:37 +01:00
committed by Felix Lange
parent fdff182f11
commit 5d21667587
12 changed files with 60 additions and 68 deletions

View File

@ -289,3 +289,14 @@ func runTestFunc(runTest interface{}, t *testing.T, name string, m reflect.Value
m.MapIndex(reflect.ValueOf(key)),
})
}
func TestMatcherWhitelist(t *testing.T) {
t.Parallel()
tm := new(testMatcher)
tm.whitelist("invalid*")
tm.walk(t, rlpTestDir, func(t *testing.T, name string, test *RLPTest) {
if name[:len("invalidRLPTest.json")] != "invalidRLPTest.json" {
t.Fatalf("invalid test found: %s != invalidRLPTest.json", name)
}
})
}