(t *testing.T)
| 17 | } |
| 18 | |
| 19 | func TestBufferCreation(t *testing.T) { |
| 20 | b := makeBufferForTesting(10, 20) |
| 21 | assert.Equal(t, uint16(10), b.Width()) |
| 22 | assert.Equal(t, uint16(20), b.ViewHeight()) |
| 23 | assert.Equal(t, uint16(0), b.CursorColumn()) |
| 24 | assert.Equal(t, uint16(0), b.CursorLine()) |
| 25 | assert.NotNil(t, b.lines) |
| 26 | } |
| 27 | |
| 28 | func TestNewLine(t *testing.T) { |
| 29 | b := makeBufferForTesting(30, 3) |
nothing calls this directly
no test coverage detected