MCPcopy Create free account
hub / github.com/github/gh-aw / TestFormatSuccessMessage

Function TestFormatSuccessMessage

pkg/console/console_test.go:162–170  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

160}
161
162func TestFormatSuccessMessage(t *testing.T) {
163 output := FormatSuccessMessage("compilation completed")
164 if !strings.Contains(output, "compilation completed") {
165 t.Errorf("Expected output to contain message, got: %s", output)
166 }
167 if !strings.Contains(output, "✓") {
168 t.Errorf("Expected output to contain checkmark, got: %s", output)
169 }
170}
171
172func TestFormatInfoMessage(t *testing.T) {
173 output := FormatInfoMessage("processing file")

Callers

nothing calls this directly

Calls 2

FormatSuccessMessageFunction · 0.70
ErrorfMethod · 0.45

Tested by

no test coverage detected