mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
review feedback: add a test to quell staticcheck
This commit is contained in:
parent
2587fa5a10
commit
2d02a80f2a
1 changed files with 9 additions and 0 deletions
|
|
@ -136,6 +136,15 @@ func (tm *testMatcher) fails(pattern string, reason string) {
|
|||
tm.failpat = append(tm.failpat, testFailure{regexp.MustCompile(pattern), reason})
|
||||
}
|
||||
|
||||
func (tm *testMatcher) whitelist(pattern string) {
|
||||
tm.whitelistpat = regexp.MustCompile(pattern)
|
||||
}
|
||||
|
||||
func TestDummyMatcherToKeepBothStaticcheckandHolimanHappy(t *testing.T) {
|
||||
tm := testMatcher{}
|
||||
tm.whitelist("")
|
||||
}
|
||||
|
||||
// config defines chain config for tests matching the pattern.
|
||||
func (tm *testMatcher) config(pattern string, cfg params.ChainConfig) {
|
||||
tm.configpat = append(tm.configpat, testConfig{regexp.MustCompile(pattern), cfg})
|
||||
|
|
|
|||
Loading…
Reference in a new issue