commandinfo_test.go 271 B

1234567891011
  1. package redisx
  2. import "testing"
  3. func TestLookupCommandInfo(t *testing.T) {
  4. for _, n := range []string{"watch", "WATCH", "wAtch"} {
  5. if lookupCommandInfo(n) == (commandInfo{}) {
  6. t.Errorf("LookupCommandInfo(%q) = CommandInfo{}, expected non-zero value", n)
  7. }
  8. }
  9. }