(t *testing.T)
| 401 | } |
| 402 | |
| 403 | func TestRenderDiff_Basic(t *testing.T) { |
| 404 | t.Parallel() |
| 405 | parsed := ParsedDiff{Lines: []DiffLine{ |
| 406 | {Type: LineHunkHeader, Content: "func main()", OldNum: -1, NewNum: -1}, |
| 407 | {Type: LineContext, Content: "ctx", OldNum: 1, NewNum: 1}, |
| 408 | {Type: LineAdded, Content: "new", OldNum: -1, NewNum: 2}, |
| 409 | }} |
| 410 | styles, th := testStyles() |
| 411 | result := RenderDiff(parsed, "test.go", styles, th, 100) |
| 412 | if result == "" { |
| 413 | t.Error("expected non-empty render") |
| 414 | } |
| 415 | } |
| 416 | |
| 417 | func TestRenderDiff_Binary(t *testing.T) { |
| 418 | t.Parallel() |
nothing calls this directly
no test coverage detected