Documentation
¶
Index ¶
- func FreezeTime()
- func TruncateTables()
- type ClientState
- func (c *ClientState) Delete(path string) (*httptest.ResponseRecorder, error)
- func (c *ClientState) Get(path string) (*httptest.ResponseRecorder, error)
- func (c *ClientState) Patch(path string, body any) (*httptest.ResponseRecorder, error)
- func (c *ClientState) Post(path string, body any) (*httptest.ResponseRecorder, error)
- func (c *ClientState) Put(path string, body any) (*httptest.ResponseRecorder, error)
- type TestApp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FreezeTime ¶
func FreezeTime()
func TruncateTables ¶
func TruncateTables()
Types ¶
type ClientState ¶
type ClientState struct { User *auth.User Session *auth.Session Workspace *auth.Workspace // contains filtered or unexported fields }
func NewClientState ¶
func NewClientState() *ClientState
func NewClientStateWithUser ¶
func NewClientStateWithUser(t *testing.T) *ClientState
func NewClientStateWithUserEmail ¶
func NewClientStateWithUserEmail(t *testing.T, email string) *ClientState
func (*ClientState) Delete ¶
func (c *ClientState) Delete(path string) (*httptest.ResponseRecorder, error)
func (*ClientState) Get ¶
func (c *ClientState) Get(path string) (*httptest.ResponseRecorder, error)
func (*ClientState) Patch ¶
func (c *ClientState) Patch(path string, body any) (*httptest.ResponseRecorder, error)
func (*ClientState) Post ¶
func (c *ClientState) Post(path string, body any) (*httptest.ResponseRecorder, error)
func (*ClientState) Put ¶
func (c *ClientState) Put(path string, body any) (*httptest.ResponseRecorder, error)
Click to show internal directories.
Click to hide internal directories.