(t *testing.T)
| 255 | } |
| 256 | |
| 257 | func TestRedisRefreshTokenStore_ConnectionFailure(t *testing.T) { |
| 258 | // Test with invalid Redis configuration |
| 259 | config := &RedisConfig{ |
| 260 | Addr: "invalid-host:6379", |
| 261 | Password: "", |
| 262 | DB: 0, |
| 263 | } |
| 264 | |
| 265 | _, err := NewRedisRefreshTokenStore(config) |
| 266 | assert.Error(t, err, "Should return error for invalid Redis configuration") |
| 267 | assert.Contains( |
| 268 | t, |
| 269 | err.Error(), |
| 270 | "failed to create Redis client", |
| 271 | "Error should mention Redis client creation failure", |
| 272 | ) |
| 273 | } |
| 274 | |
| 275 | func TestRedisRefreshTokenStore_InvalidToken(t *testing.T) { |
| 276 | host, port := setupRedisContainer(t) |
nothing calls this directly
no test coverage detected
searching dependent graphs…