MCPcopy Create free account
hub / github.com/devfeel/dotweb / TestRedisClient_GetRedisClient

Function TestRedisClient_GetRedisClient

framework/redis/redisutil_test.go:34–46  ·  view source on GitHub ↗

TestRedisClient_GetRedisClient tests GetRedisClient with custom pool settings

(t *testing.T)

Source from the content-addressed store, hash-verified

32
33// TestRedisClient_GetRedisClient tests GetRedisClient with custom pool settings
34func TestRedisClient_GetRedisClient(t *testing.T) {
35 // This test doesn't need Redis connection
36 client := GetRedisClient("redis://localhost:6379/0", 5, 10)
37 if client == nil {
38 t.Error("GetRedisClient returned nil")
39 }
40
41 // Test with zero values (should use defaults)
42 client2 := GetRedisClient("redis://localhost:6379/0", 0, 0)
43 if client2 == nil {
44 t.Error("GetRedisClient with zero values returned nil")
45 }
46}
47
48// TestRedisClient_Get tests Get operation
49func TestRedisClient_Get(t *testing.T) {

Callers

nothing calls this directly

Calls 2

GetRedisClientFunction · 0.85
ErrorMethod · 0.65

Tested by

no test coverage detected