This test exercises HandledWithMessagef.
(t *testing.T)
| 90 | |
| 91 | // This test exercises HandledWithMessagef. |
| 92 | func TestHandledWithMessagef(t *testing.T) { |
| 93 | tt := testutils.T{T: t} |
| 94 | |
| 95 | origErr := errors.New("hello friends") |
| 96 | |
| 97 | b1 := barriers.HandledWithMessage(origErr, "woo woo") |
| 98 | b2 := barriers.HandledWithMessagef(origErr, "woo %s", "woo") |
| 99 | |
| 100 | tt.CheckStringEqual(b1.Error(), b2.Error()) |
| 101 | } |
| 102 | |
| 103 | func TestFormat(t *testing.T) { |
| 104 | tt := testutils.T{t} |
nothing calls this directly
no test coverage detected
searching dependent graphs…