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

Function TestRenderSplitDiff_Binary

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

Source from the content-addressed store, hash-verified

136}
137
138func TestRenderSplitDiff_Binary(t *testing.T) {
139 parsed := ParsedDiff{Binary: true}
140 styles, th := testStyles()
141 result := RenderSplitDiff(parsed, "test.bin", styles, th, 100)
142 if !strings.Contains(result, "Binary") {
143 t.Error("binary file should show binary message")
144 }
145}
146
147func TestRenderNewFileSplit_ContainsSeparator(t *testing.T) {
148 styles, th := testStyles()

Callers

nothing calls this directly

Calls 2

testStylesFunction · 0.85
RenderSplitDiffFunction · 0.85

Tested by

no test coverage detected