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

Function TestParseDiff_BinaryFile

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

Source from the content-addressed store, hash-verified

311}
312
313func TestParseDiff_BinaryFile(t *testing.T) {
314 t.Parallel()
315 raw := "Binary files a/img.png and b/img.png differ"
316 parsed := ParseDiff(raw)
317 if !parsed.Binary {
318 t.Error("should detect binary file")
319 }
320}
321
322func TestParseDiff_MultipleHunks(t *testing.T) {
323 t.Parallel()

Callers

nothing calls this directly

Calls 1

ParseDiffFunction · 0.85

Tested by

no test coverage detected