Documentation ¶
Overview ¶
Package testcanvas provides helpers for tests that use the canvas package.
Index ¶
- func MustApply(c *canvas.Canvas, t *faketerm.Terminal)
- func MustCell(c *canvas.Canvas, p image.Point) *buffer.Cell
- func MustCopyTo(src, dst *canvas.Canvas)
- func MustNew(area image.Rectangle) *canvas.Canvas
- func MustSetAreaCells(c *canvas.Canvas, cellArea image.Rectangle, r rune, opts ...cell.Option)
- func MustSetCell(c *canvas.Canvas, p image.Point, r rune, opts ...cell.Option) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustCopyTo ¶
MustCopyTo copies the content of the source canvas onto the destination canvas or panics.
func MustSetAreaCells ¶
MustSetAreaCells sets the cells in the area or panics.
func MustSetCell ¶
MustSetCell sets the cell value or panics. Returns the number of cells the rune occupies, wide runes can occupy multiple cells when printed on the terminal. See http://www.unicode.org/reports/tr11/.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.