(t *testing.T)
| 55 | } |
| 56 | |
| 57 | func TestInMemoryRefreshTokenStore_SetEmptyToken(t *testing.T) { |
| 58 | store := NewInMemoryRefreshTokenStore() |
| 59 | user := &User{ID: "123", Username: "testuser"} |
| 60 | expiry := time.Now().Add(time.Hour) |
| 61 | |
| 62 | err := store.Set(context.Background(), "", user, expiry) |
| 63 | if err == nil { |
| 64 | t.Fatal("Set() should return error for empty token") |
| 65 | } |
| 66 | |
| 67 | if err.Error() != "token cannot be empty" { |
| 68 | t.Fatalf("Expected 'token cannot be empty' error, got: %v", err) |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | func TestInMemoryRefreshTokenStore_Get(t *testing.T) { |
| 73 | store := NewInMemoryRefreshTokenStore() |
nothing calls this directly
no test coverage detected
searching dependent graphs…