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

Function TestKeyboard

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

Source from the content-addressed store, hash-verified

978}
979
980func TestKeyboard(t *testing.T) {
981 sd, err := New()
982 if err != nil {
983 t.Fatalf("New => unexpected error: %v", err)
984 }
985 if err := sd.Keyboard(&terminalapi.Keyboard{}, &widgetapi.EventMeta{}); err == nil {
986 t.Errorf("Keyboard => got nil err, wanted one")
987 }
988}
989
990func TestMouse(t *testing.T) {
991 sd, err := New()

Callers

nothing calls this directly

Calls 2

NewFunction · 0.70
KeyboardMethod · 0.65

Tested by

no test coverage detected