(t *testing.T)
| 293 | } |
| 294 | |
| 295 | func TestClearWithoutFullView(t *testing.T) { |
| 296 | b := makeBufferForTesting(80, 10) |
| 297 | writeRaw(b, []rune("hello 1")...) |
| 298 | b.carriageReturn() |
| 299 | b.newLine() |
| 300 | writeRaw(b, []rune("hello 1")...) |
| 301 | b.carriageReturn() |
| 302 | b.newLine() |
| 303 | writeRaw(b, []rune("hello 1")...) |
| 304 | b.clear() |
| 305 | lines := b.GetVisibleLines() |
| 306 | for _, line := range lines { |
| 307 | assert.Equal(t, "", line.String()) |
| 308 | } |
| 309 | } |
| 310 | |
| 311 | func TestClearWithFullView(t *testing.T) { |
| 312 | b := makeBufferForTesting(80, 5) |
nothing calls this directly
no test coverage detected