fails adds an expected failure for tests matching the pattern.
(pattern string, reason string)
| 115 | |
| 116 | // fails adds an expected failure for tests matching the pattern. |
| 117 | func (tm *testMatcher) fails(pattern string, reason string) { |
| 118 | if reason == "" { |
| 119 | panic("empty fail reason") |
| 120 | } |
| 121 | tm.failpat = append(tm.failpat, testFailure{regexp.MustCompile(pattern), reason}) |
| 122 | } |
| 123 | |
| 124 | // config defines chain config for tests matching the pattern. |
| 125 | func (tm *testMatcher) config(pattern string, cfg configs.ChainConfig) { |