(t *testing.T)
| 18 | } |
| 19 | |
| 20 | func TestNewInMemoryRefreshTokenStore(t *testing.T) { |
| 21 | store := NewInMemoryRefreshTokenStore() |
| 22 | |
| 23 | if store == nil { |
| 24 | t.Fatal("NewInMemoryRefreshTokenStore returned nil") |
| 25 | } |
| 26 | |
| 27 | if store.tokens == nil { |
| 28 | t.Fatal("store.tokens is nil") |
| 29 | } |
| 30 | |
| 31 | count, err := store.Count(context.Background()) |
| 32 | if err != nil { |
| 33 | t.Fatalf("Count() returned error: %v", err) |
| 34 | } |
| 35 | |
| 36 | if count != 0 { |
| 37 | t.Fatalf("Expected count to be 0, got %d", count) |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | func TestInMemoryRefreshTokenStore_Set(t *testing.T) { |
| 42 | store := NewInMemoryRefreshTokenStore() |
nothing calls this directly
no test coverage detected
searching dependent graphs…