tile38/vendor/github.com/gomodule/redigo/redisx/commandinfo_test.go

12 lines
271 B
Go
Raw Permalink Normal View History

2018-10-29 15:00:54 +03:00
package redisx
import "testing"
func TestLookupCommandInfo(t *testing.T) {
for _, n := range []string{"watch", "WATCH", "wAtch"} {
if lookupCommandInfo(n) == (commandInfo{}) {
t.Errorf("LookupCommandInfo(%q) = CommandInfo{}, expected non-zero value", n)
}
}
}