MCPcopy Create free account
hub / github.com/driangle/taskmd / TestFormatHeading_Effort

Function TestFormatHeading_Effort

apps/cli/internal/cli/colors_test.go:183–193  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

181}
182
183func TestFormatHeading_Effort(t *testing.T) {
184 r := ansiRenderer()
185
186 result := formatHeading("small", "effort", r)
187 if !strings.Contains(result, "small") {
188 t.Errorf("Expected 'small' in heading, got: %q", result)
189 }
190 if !strings.Contains(result, "\x1b[") {
191 t.Error("Expected ANSI codes in effort heading")
192 }
193}

Callers

nothing calls this directly

Calls 3

ansiRendererFunction · 0.85
formatHeadingFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected