MCPcopy Create free account
hub / github.com/CPChain/chain / findSkip

Method findSkip

tests/init_test.go:130–144  ·  view source on GitHub ↗

findSkip matches name against test skip patterns.

(name string)

Source from the content-addressed store, hash-verified

128
129// findSkip matches name against test skip patterns.
130func (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.
147func (tm *testMatcher) findConfig(name string) *configs.ChainConfig {

Callers 2

walkMethod · 0.95
runTestFileMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected