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

Function TestMouse

widgets/segmentdisplay/segmentdisplay_test.go:990–998  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

988}
989
990func TestMouse(t *testing.T) {
991 sd, err := New()
992 if err != nil {
993 t.Fatalf("New => unexpected error: %v", err)
994 }
995 if err := sd.Mouse(&terminalapi.Mouse{}, &widgetapi.EventMeta{}); err == nil {
996 t.Errorf("Mouse => got nil err, wanted one")
997 }
998}
999
1000func TestOptions(t *testing.T) {
1001 sd, err := New()

Callers

nothing calls this directly

Calls 2

NewFunction · 0.70
MouseMethod · 0.65

Tested by

no test coverage detected