(t *testing.T)
| 165 | } |
| 166 | |
| 167 | func TestRenderSplitSide_Added(t *testing.T) { |
| 168 | styles, th := testStyles() |
| 169 | dl := &DiffLine{Type: LineAdded, Content: "new line", OldNum: -1, NewNum: 5} |
| 170 | result := renderSplitSide(dl, "test.go", styles, th, 50, false) |
| 171 | if len(result) == 0 { |
| 172 | t.Error("added line should produce output") |
| 173 | } |
| 174 | } |
| 175 | |
| 176 | func TestRenderSplitSide_Removed(t *testing.T) { |
| 177 | styles, th := testStyles() |
nothing calls this directly
no test coverage detected