Benchmark tests
(b *testing.B)
| 409 | |
| 410 | // Benchmark tests |
| 411 | func BenchmarkInMemoryRefreshTokenStore_Set(b *testing.B) { |
| 412 | store := NewInMemoryRefreshTokenStore() |
| 413 | user := &User{ID: "123", Username: "testuser"} |
| 414 | expiry := time.Now().Add(time.Hour) |
| 415 | |
| 416 | b.ResetTimer() |
| 417 | for i := 0; i < b.N; i++ { |
| 418 | token := fmt.Sprintf("token%d", i) |
| 419 | _ = store.Set(context.Background(), token, user, expiry) |
| 420 | } |
| 421 | } |
| 422 | |
| 423 | func BenchmarkInMemoryRefreshTokenStore_Get(b *testing.B) { |
| 424 | store := NewInMemoryRefreshTokenStore() |
nothing calls this directly
no test coverage detected
searching dependent graphs…