(t *testing.T)
| 43 | } |
| 44 | |
| 45 | func TestEmptyPatch(t *testing.T) { |
| 46 | content := "Hello world" |
| 47 | result, err := ApplyPatch(content, "") |
| 48 | if err != nil { |
| 49 | t.Fatalf("unexpected error: %v", err) |
| 50 | } |
| 51 | if result != content { |
| 52 | t.Errorf("expected %q, got %q", content, result) |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | func TestIdenticalContent(t *testing.T) { |
| 57 | content := "Hello world" |
nothing calls this directly
no test coverage detected