Documentation
¶
Overview ¶
Package passkeytest provides a backend-agnostic conformance suite for the passkey.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.
Passkeys are a sharper test than most stores: credential ids, public keys and AAGUIDs are raw binary, and the sign count is a uint32 that the SQL backends have to hold in a signed column.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Fixture ¶
type Fixture struct {
Store passkey.Store
AppID id.AppID
UserID id.UserID
// OtherUserID is a second user under the same app, used to prove that
// credential listing is scoped to one user.
OtherUserID id.UserID
}
Fixture is one backend ready to test, plus the tenant rows its foreign keys point at.
Click to show internal directories.
Click to hide internal directories.