TestRedisClient_GetRedisClient tests GetRedisClient with custom pool settings
(t *testing.T)
| 32 | |
| 33 | // TestRedisClient_GetRedisClient tests GetRedisClient with custom pool settings |
| 34 | func 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 |
| 49 | func TestRedisClient_Get(t *testing.T) { |
nothing calls this directly
no test coverage detected