Files
cgrates/utils/redis_test.go
2015-04-15 18:36:47 +03:00

11 lines
257 B
Go

package utils
import "testing"
func TestRedisGenProto(t *testing.T) {
cmd := GenRedisProtocol("SET", "mykey", "Hello World!")
if cmd != "*3\r\n$3\r\nSET\r\n$5\r\nmykey\r\n$12\r\nHello World!\r\n" {
t.Error("Wrong redis protocol command: " + cmd)
}
}