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

Function failureString

rivertest/rivertest.go:607–609  ·  view source on GitHub ↗

failureString wraps a printf-style formatting directive with a River header and footer common to all failure messages.

(format string, a ...any)

Source from the content-addressed store, hash-verified

605// failureString wraps a printf-style formatting directive with a River header
606// and footer common to all failure messages.
607func failureString(format string, a ...any) string {
608 return "\n River assertion failure:\n " + fmt.Sprintf(format, a...) + "\n"
609}
610
611// WorkContext returns a realistic context that can be used to test JobArgs.Work
612// implementations.

Callers 5

TestRequireInsertedTxFunction · 0.85
TestRequireNotInsertedTxFunction · 0.85
TestRequireManyInsertedFunction · 0.85
failurefFunction · 0.85

Calls

no outgoing calls

Tested by 4

TestRequireInsertedTxFunction · 0.68
TestRequireNotInsertedTxFunction · 0.68
TestRequireManyInsertedFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…