MCPcopy Index your code
hub / github.com/cockroachdb/errors / Run

Method Run

testutils/simplecheck.go:77–83  ·  view source on GitHub ↗

Run runs the specified sub-test and passes it a T instance from this package.

(testName string, testFn func(t T))

Source from the content-addressed store, hash-verified

75// Run runs the specified sub-test and passes it a T instance
76// from this package.
77func (t *T) Run(testName string, testFn func(t T)) {
78 t.Helper()
79 t.T.Run(testName, func(t *testing.T) {
80 t.Helper()
81 testFn(T{T: t})
82 })
83}
84
85// Assert calls t.Fatal if the condition is false. Also
86// the text of the assertion is printed.

Callers 15

TestWithContextFunction · 0.95
TestFormatFunction · 0.95
TestAssertFunction · 0.95
TestFormatFunction · 0.95
TestFormatFunction · 0.95
TestFormatFunction · 0.95
TestFormatFunction · 0.95
TestIssueLinkFunction · 0.95
TestFormatFunction · 0.95
TestUnimplementedErrorFunction · 0.95
TestFormatUnimpFunction · 0.95

Calls

no outgoing calls

Tested by 15

TestWithContextFunction · 0.76
TestFormatFunction · 0.76
TestAssertFunction · 0.76
TestFormatFunction · 0.76
TestFormatFunction · 0.76
TestFormatFunction · 0.76
TestFormatFunction · 0.76
TestIssueLinkFunction · 0.76
TestFormatFunction · 0.76
TestUnimplementedErrorFunction · 0.76
TestFormatUnimpFunction · 0.76