MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / TestIdenticalContent

Function TestIdenticalContent

internal/diff/diff_test.go:56–62  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

54}
55
56func TestIdenticalContent(t *testing.T) {
57 content := "Hello world"
58 patch := CreatePatch(content, content)
59 if patch != "" {
60 t.Errorf("expected empty patch for identical content, got %q", patch)
61 }
62}
63
64func TestIsDiffSmaller(t *testing.T) {
65 // Small change to large doc — diff should be smaller

Callers

nothing calls this directly

Calls 1

CreatePatchFunction · 0.85

Tested by

no test coverage detected