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

Function TestRenderSplitSide_Nil

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

Source from the content-addressed store, hash-verified

153}
154
155func TestRenderSplitSide_Nil(t *testing.T) {
156 styles, th := testStyles()
157 result := renderSplitSide(nil, "test.go", styles, th, 40, true)
158 if len(result) == 0 {
159 t.Error("nil side should produce padding, not empty")
160 }
161 // Should be all spaces
162 if strings.TrimSpace(result) != "" {
163 t.Errorf("nil side should be blank, got %q", result)
164 }
165}
166
167func TestRenderSplitSide_Added(t *testing.T) {
168 styles, th := testStyles()

Callers

nothing calls this directly

Calls 2

testStylesFunction · 0.85
renderSplitSideFunction · 0.85

Tested by

no test coverage detected