Documentation
¶
Overview ¶
Package recordstest is the contract every record store of gonsole/auth keeps, run as one test suite.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Fixture ¶
type Fixture struct {
// Records is the store under test, not yet migrated.
Records auth.RecordStore
// Migrate creates what the store keeps its records in.
Migrate func(ctx context.Context) error
// Account creates an account at the address email and returns its id.
Account func(ctx context.Context, email string) (string, error)
// Plant stores entry as Insert would, but as applied at appliedAt.
Plant func(ctx context.Context, entry auth.Entry, appliedAt time.Time) error
}
Fixture is one fresh record store and the hooks the suite drives it with.
Click to show internal directories.
Click to hide internal directories.