Documentation ¶
Index ¶
- func ManagerTests(deps Deps, m consent.Manager, clientManager client.Manager, ...) func(t *testing.T)
- func MockAuthRequest(key string, authAt bool, network string) (c *flow.LoginRequest, h *flow.HandledLoginRequest, f *flow.Flow)
- func MockConsentRequest(key string, remember bool, rememberFor int, hasError bool, skip bool, ...) (c *flow.OAuth2ConsentRequest, h *flow.AcceptOAuth2ConsentRequest, f *flow.Flow)
- func MockLogoutRequest(key string, withClient bool, network string) (c *flow.LogoutRequest)
- func SaneMockAuthRequest(t *testing.T, m consent.Manager, ls *flow.LoginSession, cl *client.Client) (c *flow.LoginRequest)
- func SaneMockConsentRequest(t *testing.T, m consent.Manager, f *flow.Flow, skip bool) (c *flow.OAuth2ConsentRequest)
- func SaneMockHandleConsentRequest(t *testing.T, m consent.Manager, f *flow.Flow, c *flow.OAuth2ConsentRequest, ...) *flow.AcceptOAuth2ConsentRequest
- func TestHelperNID(r interface{ ... }, t1ValidNID consent.Manager, t2InvalidNID consent.Manager) func(t *testing.T)
- type Deps
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ManagerTests ¶
func MockAuthRequest ¶
func MockAuthRequest(key string, authAt bool, network string) (c *flow.LoginRequest, h *flow.HandledLoginRequest, f *flow.Flow)
func MockConsentRequest ¶
func MockLogoutRequest ¶
func MockLogoutRequest(key string, withClient bool, network string) (c *flow.LogoutRequest)
func SaneMockAuthRequest ¶
func SaneMockAuthRequest(t *testing.T, m consent.Manager, ls *flow.LoginSession, cl *client.Client) (c *flow.LoginRequest)
SaneMockAuthRequest does the same thing as MockAuthRequest but uses less insanity and implicit dependencies.
func SaneMockConsentRequest ¶
func SaneMockConsentRequest(t *testing.T, m consent.Manager, f *flow.Flow, skip bool) (c *flow.OAuth2ConsentRequest)
SaneMockConsentRequest does the same thing as MockConsentRequest but uses less insanity and implicit dependencies.
func TestHelperNID ¶
func TestHelperNID(r interface { client.ManagerProvider FlowCipher() *aead.XChaCha20Poly1305 }, t1ValidNID consent.Manager, t2InvalidNID consent.Manager) func(t *testing.T)
Types ¶
Click to show internal directories.
Click to hide internal directories.