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

Function TestRenderSplitSide_Added

internal/ui/diff_test.go:167–174  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

165}
166
167func TestRenderSplitSide_Added(t *testing.T) {
168 styles, th := testStyles()
169 dl := &DiffLine{Type: LineAdded, Content: "new line", OldNum: -1, NewNum: 5}
170 result := renderSplitSide(dl, "test.go", styles, th, 50, false)
171 if len(result) == 0 {
172 t.Error("added line should produce output")
173 }
174}
175
176func TestRenderSplitSide_Removed(t *testing.T) {
177 styles, th := testStyles()

Callers

nothing calls this directly

Calls 2

testStylesFunction · 0.85
renderSplitSideFunction · 0.85

Tested by

no test coverage detected