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

Function TestFormatInfoMessage

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

Source from the content-addressed store, hash-verified

170}
171
172func TestFormatInfoMessage(t *testing.T) {
173 output := FormatInfoMessage("processing file")
174 if !strings.Contains(output, "processing file") {
175 t.Errorf("Expected output to contain message, got: %s", output)
176 }
177 if !strings.Contains(output, "i ") {
178 t.Errorf("Expected output to contain info icon, got: %s", output)
179 }
180}
181
182func TestFormatWarningMessage(t *testing.T) {
183 output := FormatWarningMessage("deprecated syntax")

Callers

nothing calls this directly

Calls 2

FormatInfoMessageFunction · 0.70
ErrorfMethod · 0.45

Tested by

no test coverage detected