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

Function EnableCall

failpoints.go:269–271  ·  view source on GitHub ↗

EnableCall enables a failpoint which is a InjectCall type failpoint. The failpoint will call the function passed by EnableCall with args supplied in InjectCall. this type of failpoint does not support terms, you should control the behavior in the function.

(failpath string, fn any)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

TestCallFunction · 0.92
TestFooFunction · 0.92

Calls 1

EnableCallMethod · 0.45

Tested by 2

TestCallFunction · 0.74
TestFooFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…