Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EngineMock ¶
type EngineMock struct { InitCalled bool RenderCalled bool RenderCallArgs *EngineMockRenderCallArgs }
func (*EngineMock) Init ¶
func (e *EngineMock) Init() error
func (*EngineMock) Render ¶
func (e *EngineMock) Render(w http.ResponseWriter, status int, template string, data *sync.Map) error
type EngineMockRenderCallArgs ¶
type EngineMockRenderCallArgs struct {
// contains filtered or unexported fields
}
type ResponseMock ¶
type ResponseMock struct {
// contains filtered or unexported fields
}
func NewResponseMock ¶
func NewResponseMock(t *testing.T) *ResponseMock
func (*ResponseMock) Assert ¶
func (r *ResponseMock) Assert(status int, body string)
func (*ResponseMock) Header ¶
func (r *ResponseMock) Header() http.Header
func (*ResponseMock) WriteHeader ¶
func (r *ResponseMock) WriteHeader(status int)
Click to show internal directories.
Click to hide internal directories.