Documentation ¶
Overview ¶
Package icctest contains test helpers for all other packages of this module.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutherStub ¶
AutherStub impplements the icchelper.Auther interface
func (*AutherStub) Authenticate ¶
func (a *AutherStub) Authenticate(w http.ResponseWriter, r *http.Request) (context.Context, error)
Authenticate does nothing. The Stub uses the userID that it was initialized with.
func (*AutherStub) FromContext ¶
func (a *AutherStub) FromContext(context.Context) int
FromContext returns the user id the stub was initializes with.
Click to show internal directories.
Click to hide internal directories.