MCPcopy Create free account
hub / github.com/commander-cli/commander / Test_EventHandlerTestSkipped

Function Test_EventHandlerTestSkipped

pkg/output/cli_test.go:40–55  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

38}
39
40func 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
57func Test_PrintSummary(t *testing.T) {
58 r := runtime.Result{

Callers

nothing calls this directly

Calls 3

NewCliOutputFunction · 0.85
createFakeTestResultsFunction · 0.85
GetEventHandlerMethod · 0.80

Tested by

no test coverage detected