(t *testing.T, err error, want AutonomyReasonCode)
| 9523 | } |
| 9524 | |
| 9525 | func assertAutonomyReason(t *testing.T, err error, want AutonomyReasonCode) { |
| 9526 | t.Helper() |
| 9527 | reason, ok := AutonomyReasonOf(err) |
| 9528 | if !ok || reason != want { |
| 9529 | t.Fatalf("AutonomyReasonOf(%v) = %q/%v, want %q", err, reason, ok, want) |
| 9530 | } |
| 9531 | } |
| 9532 | |
| 9533 | func createRunningRunForWakeTest( |
| 9534 | t *testing.T, |
no test coverage detected