mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
test: go fmt
This commit is contained in:
parent
3eb55f5176
commit
81770ee6fb
1 changed files with 5 additions and 4 deletions
|
|
@ -122,9 +122,10 @@ func (tm *testMatcher) fails(pattern string, reason string) {
|
||||||
tm.failpat = append(tm.failpat, testFailure{regexp.MustCompile(pattern), reason})
|
tm.failpat = append(tm.failpat, testFailure{regexp.MustCompile(pattern), reason})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (tm *testMatcher) whitelist(pattern string){
|
func (tm *testMatcher) whitelist(pattern string) {
|
||||||
tm.whitelistpat = regexp.MustCompile(pattern)
|
tm.whitelistpat = regexp.MustCompile(pattern)
|
||||||
}
|
}
|
||||||
|
|
||||||
// config defines chain config for tests matching the pattern.
|
// config defines chain config for tests matching the pattern.
|
||||||
func (tm *testMatcher) config(pattern string, cfg params.ChainConfig) {
|
func (tm *testMatcher) config(pattern string, cfg params.ChainConfig) {
|
||||||
tm.configpat = append(tm.configpat, testConfig{regexp.MustCompile(pattern), cfg})
|
tm.configpat = append(tm.configpat, testConfig{regexp.MustCompile(pattern), cfg})
|
||||||
|
|
@ -212,8 +213,8 @@ func (tm *testMatcher) runTestFile(t *testing.T, path, name string, runTest inte
|
||||||
if r, _ := tm.findSkip(name); r != "" {
|
if r, _ := tm.findSkip(name); r != "" {
|
||||||
t.Skip(r)
|
t.Skip(r)
|
||||||
}
|
}
|
||||||
if tm.whitelistpat != nil{
|
if tm.whitelistpat != nil {
|
||||||
if !tm.whitelistpat.MatchString(name){
|
if !tm.whitelistpat.MatchString(name) {
|
||||||
t.Skip("Skipped by whitelist")
|
t.Skip("Skipped by whitelist")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue