failureString wraps a printf-style formatting directive with a River header and footer common to all failure messages.
(format string, a ...any)
| 605 | // failureString wraps a printf-style formatting directive with a River header |
| 606 | // and footer common to all failure messages. |
| 607 | func 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. |
no outgoing calls
searching dependent graphs…