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

Function TestParseDiff_Empty

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

Source from the content-addressed store, hash-verified

359}
360
361func TestParseDiff_Empty(t *testing.T) {
362 t.Parallel()
363 parsed := ParseDiff("")
364 if parsed.Binary {
365 t.Error("empty should not be binary")
366 }
367 if len(parsed.Lines) != 0 {
368 t.Errorf("expected 0 lines, got %d", len(parsed.Lines))
369 }
370}
371
372func TestParseDiff_Truncation(t *testing.T) {
373 t.Parallel()

Callers

nothing calls this directly

Calls 1

ParseDiffFunction · 0.85

Tested by

no test coverage detected