MCPcopy Create free account
hub / github.com/gokcehan/lf / TestReadKey

Function TestReadKey

key_test.go:28–34  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

26}
27
28func TestReadKey(t *testing.T) {
29 for _, test := range gKeyTests {
30 if got := readKey(test.ev); got != test.s {
31 t.Errorf("at input '%#v' expected '%s' but got '%s'", test.ev, test.s, got)
32 }
33 }
34}
35
36func TestParseKey(t *testing.T) {
37 keyEqual := func(ev1, ev2 *tcell.EventKey) bool {

Callers

nothing calls this directly

Calls 1

readKeyFunction · 0.85

Tested by

no test coverage detected