@@ -60,7 +60,7 @@ func TestNewCache(t *testing.T) {
6060
6161 assert .NoError (t , err )
6262 assert .NotNil (t , cache )
63-
63+
6464 // Verify it's a memory cache
6565 memCache , ok := cache .(* MemoryCache )
6666 assert .True (t , ok )
@@ -87,7 +87,7 @@ func TestNewCache(t *testing.T) {
8787
8888 assert .NoError (t , err )
8989 assert .NotNil (t , cache )
90-
90+
9191 // Should fallback to memory cache
9292 _ , ok := cache .(* MemoryCache )
9393 assert .True (t , ok )
@@ -116,7 +116,7 @@ func TestNewCache(t *testing.T) {
116116
117117 assert .NoError (t , err )
118118 assert .NotNil (t , cache )
119-
119+
120120 // Should fallback to memory cache due to connection failure
121121 _ , ok := cache .(* MemoryCache )
122122 assert .True (t , ok )
@@ -141,7 +141,7 @@ func TestNewCache(t *testing.T) {
141141
142142 assert .NoError (t , err )
143143 assert .NotNil (t , cache )
144-
144+
145145 // Should default to memory cache
146146 _ , ok := cache .(* MemoryCache )
147147 assert .True (t , ok )
@@ -168,7 +168,7 @@ func TestCreateRedisCache(t *testing.T) {
168168
169169 assert .NoError (t , err )
170170 assert .NotNil (t , cache )
171-
171+
172172 // Should be memory cache
173173 _ , ok := cache .(* MemoryCache )
174174 assert .True (t , ok )
@@ -196,7 +196,7 @@ func TestCreateRedisCache(t *testing.T) {
196196
197197 assert .NoError (t , err )
198198 assert .NotNil (t , cache )
199-
199+
200200 // Should fallback to memory cache
201201 _ , ok := cache .(* MemoryCache )
202202 assert .True (t , ok )
@@ -251,7 +251,7 @@ func TestCreateMemoryCache(t *testing.T) {
251251
252252 assert .NoError (t , err )
253253 assert .NotNil (t , cache )
254-
254+
255255 memCache , ok := cache .(* MemoryCache )
256256 assert .True (t , ok )
257257 assert .Equal (t , 500 , memCache .maxKeys )
@@ -266,7 +266,7 @@ func TestCreateMemoryCache(t *testing.T) {
266266 mockLogger .On ("Info" , "memory cache initialized successfully" )
267267
268268 config := auth.CacheConfig {
269- MaxKeys : - 100 , // Invalid
269+ MaxKeys : - 100 , // Invalid
270270 CleanupInterval : time .Duration (- 1 ), // Invalid
271271 }
272272
@@ -275,7 +275,7 @@ func TestCreateMemoryCache(t *testing.T) {
275275 // Should still work due to defaults in NewMemoryCache
276276 assert .NoError (t , err )
277277 assert .NotNil (t , cache )
278-
278+
279279 memCache , ok := cache .(* MemoryCache )
280280 assert .True (t , ok )
281281 // Should use defaults
@@ -285,4 +285,4 @@ func TestCreateMemoryCache(t *testing.T) {
285285 _ = cache .Close ()
286286 mockLogger .AssertExpectations (t )
287287 })
288- }
288+ }
0 commit comments