MCPcopy Create free account
hub / github.com/pingcap/failpoint / EnableWith

Method EnableWith

failpoint.go:73–86  ·  view source on GitHub ↗

EnableWith enables and locks the failpoint, the lock prevents the failpoint to be evaluated. It invokes the action while holding the lock. It is useful when enables a panic failpoint and does some post actions before the failpoint being evaluated.

(inTerms string, action func() error)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

ServeHTTPMethod · 0.45

Calls 1

newTermsFunction · 0.85

Tested by

no test coverage detected