Files
mayfly-go/server/internal/redis/application/redis_test.go
2024-10-28 12:13:41 +08:00

18 lines
374 B
Go

package application
import (
"fmt"
"mayfly-go/internal/common/utils"
"strings"
"testing"
)
func TestParseRedisCommand(t *testing.T) {
utils.SplitStmts(strings.NewReader("del 'key l3'; set key2 key3; set 'key3' 'value3 and value4'; hset field1 key1 'hvalue2 hvalue3'"), func(stmt string) error {
res := parseRedisCommand(stmt)
fmt.Println(res)
return nil
})
}