Documentation
¶
Overview ¶
Package repotest is the contract every auth repository must satisfy. Both backends run it, so a behaviour that differs between SQLite and Postgres fails here rather than in production.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type New ¶
type New func(t *testing.T) Repositories
New builds repositories over empty storage, once per subtest, so no test sees another's rows.
type Repositories ¶
type Repositories struct {
User auth.UserRepository
Session auth.SessionRepository
Token auth.TokenRepository
Identity auth.IdentityRepository
}
Click to show internal directories.
Click to hide internal directories.