findSkip matches name against test skip patterns.
(name string)
| 128 | |
| 129 | // findSkip matches name against test skip patterns. |
| 130 | func (tm *testMatcher) findSkip(name string) (reason string, skipload bool) { |
| 131 | if testing.Short() { |
| 132 | for _, re := range tm.skipshortpat { |
| 133 | if re.MatchString(name) { |
| 134 | return "skipped in -short mode", false |
| 135 | } |
| 136 | } |
| 137 | } |
| 138 | for _, re := range tm.skiploadpat { |
| 139 | if re.MatchString(name) { |
| 140 | return "skipped by skipLoad", true |
| 141 | } |
| 142 | } |
| 143 | return "", false |
| 144 | } |
| 145 | |
| 146 | // findConfig returns the chain config matching defined patterns. |
| 147 | func (tm *testMatcher) findConfig(name string) *configs.ChainConfig { |
no outgoing calls
no test coverage detected