MCPcopy
hub / github.com/liamg/darktile / TestBufferCreation

Function TestBufferCreation

internal/app/darktile/termutil/buffer_test.go:19–26  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

17}
18
19func 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
28func TestNewLine(t *testing.T) {
29 b := makeBufferForTesting(30, 3)

Callers

nothing calls this directly

Calls 5

makeBufferForTestingFunction · 0.85
WidthMethod · 0.80
ViewHeightMethod · 0.80
CursorColumnMethod · 0.80
CursorLineMethod · 0.80

Tested by

no test coverage detected