Documentation
¶
Overview ¶
Package mfatest provides a backend-agnostic conformance suite for the mfa.Store interface. Every backend (memory, sqlite, postgres, mongo) is expected to pass the same contract, so behavioral drift between them is caught here rather than in production.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Fixture ¶
type Fixture struct {
Store mfa.Store
AppID id.AppID
UserID id.UserID
// OtherUserID is a second user under the same app, used to prove that
// enrollments and recovery codes are scoped to one user.
OtherUserID id.UserID
}
Fixture is one backend ready to test, plus the users its rows hang off.
Click to show internal directories.
Click to hide internal directories.