fix: remaining database qualifiers in tests

This commit is contained in:
2026-05-06 23:14:46 +02:00
parent 7f768080ee
commit 999a7f73c1
3 changed files with 9 additions and 9 deletions

View File

@@ -41,5 +41,5 @@ func TestProxyTokenScopeValidation(t *testing.T) {
} }
type fakeProxyQuerier struct { type fakeProxyQuerier struct {
database.Querier db.Querier
} }

View File

@@ -8,23 +8,23 @@ import (
) )
type fakeQuerier struct { type fakeQuerier struct {
database.Querier db.Querier
upsertAnimeCalled bool upsertAnimeCalled bool
upsertEntryCalled bool upsertEntryCalled bool
addRows []database.GetUserWatchListRow addRows []db.GetUserWatchListRow
} }
func (f *fakeQuerier) UpsertAnime(ctx context.Context, arg database.UpsertAnimeParams) (database.Anime, error) { func (f *fakeQuerier) UpsertAnime(ctx context.Context, arg db.UpsertAnimeParams) (db.Anime, error) {
f.upsertAnimeCalled = true f.upsertAnimeCalled = true
return database.Anime{}, nil return db.Anime{}, nil
} }
func (f *fakeQuerier) UpsertWatchListEntry(ctx context.Context, arg database.UpsertWatchListEntryParams) (database.WatchListEntry, error) { func (f *fakeQuerier) UpsertWatchListEntry(ctx context.Context, arg db.UpsertWatchListEntryParams) (db.WatchListEntry, error) {
f.upsertEntryCalled = true f.upsertEntryCalled = true
return database.WatchListEntry{}, nil return db.WatchListEntry{}, nil
} }
func (f *fakeQuerier) GetUserWatchList(ctx context.Context, userID string) ([]database.GetUserWatchListRow, error) { func (f *fakeQuerier) GetUserWatchList(ctx context.Context, userID string) ([]db.GetUserWatchListRow, error) {
return f.addRows, nil return f.addRows, nil
} }

View File

@@ -11,7 +11,7 @@ import (
) )
type staleCacheQuerier struct { type staleCacheQuerier struct {
database.Querier db.Querier
staleJSON string staleJSON string
} }