mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
more review feedback
This commit is contained in:
parent
2d02a80f2a
commit
73e9340365
1 changed files with 9 additions and 3 deletions
|
|
@ -140,9 +140,15 @@ func (tm *testMatcher) whitelist(pattern string) {
|
||||||
tm.whitelistpat = regexp.MustCompile(pattern)
|
tm.whitelistpat = regexp.MustCompile(pattern)
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestDummyMatcherToKeepBothStaticcheckandHolimanHappy(t *testing.T) {
|
func TestWhitelist(t *testing.T) {
|
||||||
tm := testMatcher{}
|
t.Parallel()
|
||||||
tm.whitelist("")
|
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)
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// config defines chain config for tests matching the pattern.
|
// config defines chain config for tests matching the pattern.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue