Documentation
¶
Overview ¶
Package testparity builds the shared endpoint-parity stack: real Postgres, a user with a credential, and signed-in sessions. It lives outside pkg/testutils because it imports the module packages — test binaries import it, module code never does.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SessionStack ¶
type SessionStack struct {
DB datastore.Store
Users *user.PostgresStore
Passwords *password.Service
Sessions *session.Service
}
SessionStack is the wired sign-in surface shared by parity tests.
func NewSessionStack ¶
func NewSessionStack(t *testing.T) *SessionStack
NewSessionStack wires the session surface over the shared test Postgres with migrations applied.
Click to show internal directories.
Click to hide internal directories.