MCPcopy
hub / github.com/mum4k/termdash / MustBorder

Function MustBorder

private/draw/testdraw/testdraw.go:28–32  ·  view source on GitHub ↗

MustBorder draws border on the canvas or panics.

(c *canvas.Canvas, border image.Rectangle, opts ...draw.BorderOption)

Source from the content-addressed store, hash-verified

26
27// MustBorder draws border on the canvas or panics.
28func MustBorder(c *canvas.Canvas, border image.Rectangle, opts ...draw.BorderOption) {
29 if err := draw.Border(c, border, opts...); err != nil {
30 panic(fmt.Sprintf("draw.Border => unexpected error: %v", err))
31 }
32}
33
34// MustText draws the text on the canvas or panics.
35func MustText(c *canvas.Canvas, text string, start image.Point, opts ...draw.TextOption) {

Callers 9

TestNewFunction · 0.92
TestMouseFunction · 0.92
TestUpdateFunction · 0.92
TestDrawWidgetFunction · 0.92
TestBuilderFunction · 0.92
TestMirrorFunction · 0.92
TestDrawFunction · 0.92
TestGaugeFunction · 0.92
TestTextInputFunction · 0.92

Calls 1

BorderFunction · 0.92

Tested by 9

TestNewFunction · 0.74
TestMouseFunction · 0.74
TestUpdateFunction · 0.74
TestDrawWidgetFunction · 0.74
TestBuilderFunction · 0.74
TestMirrorFunction · 0.74
TestDrawFunction · 0.74
TestGaugeFunction · 0.74
TestTextInputFunction · 0.74