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

Method fails

tests/init_test.go:117–122  ·  view source on GitHub ↗

fails adds an expected failure for tests matching the pattern.

(pattern string, reason string)

Source from the content-addressed store, hash-verified

115
116// fails adds an expected failure for tests matching the pattern.
117func (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.
125func (tm *testMatcher) config(pattern string, cfg configs.ChainConfig) {

Callers 2

TestVMFunction · 0.80
TestStateFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected