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

Function TestRenderBinaryFile

internal/ui/diff_test.go:394–401  ·  view source on GitHub ↗

--- Render functions ---

(t *testing.T)

Source from the content-addressed store, hash-verified

392// --- Render functions ---
393
394func TestRenderBinaryFile(t *testing.T) {
395 t.Parallel()
396 styles, _ := testStyles()
397 result := RenderBinaryFile(styles, 80)
398 if !strings.Contains(result, "Binary") {
399 t.Error("should contain 'Binary'")
400 }
401}
402
403func TestRenderDiff_Basic(t *testing.T) {
404 t.Parallel()

Callers

nothing calls this directly

Calls 2

testStylesFunction · 0.85
RenderBinaryFileFunction · 0.85

Tested by

no test coverage detected