mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-20 14:48:43 +05:00
11 lines
257 B
Go
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)
|
|
}
|
|
}
|