(t *testing.T)
| 38 | } |
| 39 | |
| 40 | func Test_EventHandlerTestSkipped(t *testing.T) { |
| 41 | var buf bytes.Buffer |
| 42 | writer := NewCliOutput(true) |
| 43 | writer.out = &buf |
| 44 | eh := writer.GetEventHandler() |
| 45 | |
| 46 | testResults := createFakeTestResults() |
| 47 | |
| 48 | for _, tr := range testResults { |
| 49 | if tr.Skipped { |
| 50 | eh.TestSkipped(tr) |
| 51 | } |
| 52 | } |
| 53 | output := buf.String() |
| 54 | assert.Contains(t, output, "- [192.168.0.1] Skipped test, was skipped") |
| 55 | } |
| 56 | |
| 57 | func Test_PrintSummary(t *testing.T) { |
| 58 | r := runtime.Result{ |
nothing calls this directly
no test coverage detected