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

Function MustHV

private/segdisp/segment/testsegment/testsegment.go:27–31  ·  view source on GitHub ↗

MustHV draws the segment or panics.

(bc *braille.Canvas, ar image.Rectangle, st segment.Type, opts ...segment.Option)

Source from the content-addressed store, hash-verified

25
26// MustHV draws the segment or panics.
27func MustHV(bc *braille.Canvas, ar image.Rectangle, st segment.Type, opts ...segment.Option) {
28 if err := segment.HV(bc, ar, st, opts...); err != nil {
29 panic(fmt.Sprintf("segment.HV => unexpected error: %v", err))
30 }
31}
32
33// MustDiagonal draws the segment or panics.
34func MustDiagonal(bc *braille.Canvas, ar image.Rectangle, width int, dt segment.DiagonalType, opts ...segment.DiagonalOption) {

Callers 2

TestDrawFunction · 0.92
TestDrawFunction · 0.92

Calls 1

HVFunction · 0.92

Tested by 2

TestDrawFunction · 0.74
TestDrawFunction · 0.74