MCPcopy Create free account
hub / github.com/JanSmrcka/differ / TestHighlightLine_GoCode

Function TestHighlightLine_GoCode

internal/ui/highlight_test.go:36–45  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

34}
35
36func TestHighlightLine_GoCode(t *testing.T) {
37 t.Parallel()
38 _, th := testStyles()
39 initChromaStyle(th.ChromaStyle)
40
41 got := highlightLine("func main() {}", "main.go", "")
42 if got == "" {
43 t.Error("expected non-empty highlighted output")
44 }
45}

Callers

nothing calls this directly

Calls 3

testStylesFunction · 0.85
initChromaStyleFunction · 0.85
highlightLineFunction · 0.85

Tested by

no test coverage detected