MCPcopy
hub / github.com/bnb-chain/bsc / Fail

Method Fail

internal/utesting/utesting.go:284–288  ·  view source on GitHub ↗

Fail marks the test as having failed but continues execution.

()

Source from the content-addressed store, hash-verified

282
283// Fail marks the test as having failed but continues execution.
284func (t *T) Fail() {
285 t.mu.Lock()
286 defer t.mu.Unlock()
287 t.failed = true
288}
289
290// Failed reports whether the test has failed.
291func (t *T) Failed() bool {

Callers 7

runTestFunction · 0.95
FailNowMethod · 0.95
ErrorMethod · 0.95
ErrorfMethod · 0.95
TestMetricsSortingFunction · 0.80
utesting_test.goFile · 0.80

Calls 2

LockMethod · 0.80
UnlockMethod · 0.45

Tested by 2

TestMetricsSortingFunction · 0.64