MCPcopy Index your code
hub / github.com/riverqueue/river / failuref

Function failuref

rivertest/rivertest.go:599–603  ·  view source on GitHub ↗

failuref takes a printf-style directive and is a shortcut for failing an assertion.

(t testingT, format string, a ...any)

Source from the content-addressed store, hash-verified

597// failuref takes a printf-style directive and is a shortcut for failing an
598// assertion.
599func failuref(t testingT, format string, a ...any) {
600 t.Helper()
601 t.Log(failureString(format, a...))
602 t.FailNow()
603}
604
605// failureString wraps a printf-style formatting directive with a River header
606// and footer common to all failure messages.

Callers 10

requireInsertedFunction · 0.85
requireInsertedTxFunction · 0.85
requireInsertedErrFunction · 0.85
requireNotInsertedFunction · 0.85
requireNotInsertedTxFunction · 0.85
requireNotInsertedErrFunction · 0.85
requireManyInsertedFunction · 0.85
requireManyInsertedTxFunction · 0.85
requireManyInsertedErrFunction · 0.85
compareJobToInsertOptsFunction · 0.85

Calls 4

failureStringFunction · 0.85
HelperMethod · 0.65
LogMethod · 0.65
FailNowMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…