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

Method printResult

pkg/output/cli.go:85–91  ·  view source on GitHub ↗

printResult prints the simple output form of a TestReault

(r TestResult)

Source from the content-addressed store, hash-verified

83
84// printResult prints the simple output form of a TestReault
85func (w *OutputWriter) printResult(r TestResult) {
86 if !r.Success {
87 w.fprintf(w.au.Red(w.template.testResult(r)))
88 return
89 }
90 w.fprintf(w.template.testResult(r))
91}
92
93func (w *OutputWriter) printSkip(r TestResult) {
94 w.fprintf(fmt.Sprintf("- [%s] %s, was skipped", r.Node, r.Title))

Callers 1

GetEventHandlerMethod · 0.95

Calls 2

fprintfMethod · 0.95
testResultMethod · 0.80

Tested by

no test coverage detected