(b *testing.B)
| 439 | } |
| 440 | |
| 441 | func BenchmarkInMemoryRefreshTokenStore_Delete(b *testing.B) { |
| 442 | store := NewInMemoryRefreshTokenStore() |
| 443 | user := &User{ID: "123", Username: "testuser"} |
| 444 | expiry := time.Now().Add(time.Hour) |
| 445 | |
| 446 | // Pre-populate with tokens |
| 447 | for i := 0; i < b.N; i++ { |
| 448 | token := fmt.Sprintf("token%d", i) |
| 449 | _ = store.Set(context.Background(), token, user, expiry) |
| 450 | } |
| 451 | |
| 452 | b.ResetTimer() |
| 453 | for i := 0; i < b.N; i++ { |
| 454 | token := fmt.Sprintf("token%d", i) |
| 455 | _ = store.Delete(context.Background(), token) |
| 456 | } |
| 457 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…