Documentation
¶
Overview ¶
Package socialtest provides a backend-agnostic conformance suite for the social.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.
An OAuth connection holds the provider tokens that stand in for a user's password at Google or GitHub, so the cases lean on whether those survive a write and whether a refresh actually replaces them.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Fixture ¶
type Fixture struct {
Store social.Store
AppID id.AppID
UserID id.UserID
// OtherUserID is a second user under the same app, used to prove that
// listing a user's connections does not reach past them.
OtherUserID id.UserID
// OtherAppID and OtherAppUser are a second tenant.
OtherAppID id.AppID
OtherAppUser id.UserID
}
Fixture is one backend ready to test, plus the rows its connections hang off.
Click to show internal directories.
Click to hide internal directories.