Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockController ¶
type MockController struct {
HasRun bool
}
MockController Mock the controller interface
func (*MockController) Init ¶
func (m *MockController) Init(app interface{}, params []string, request *http.Request)
Init Mock the init method
func (*MockController) Run ¶
func (m *MockController) Run(response http.ResponseWriter, request *http.Request)
Run Mock the run method
type MockResponse ¶
MockResponse Mock for http.ResponseWriter
func (*MockResponse) Write ¶
func (m *MockResponse) Write(b []byte) (int, error)
Write Write the response
func (*MockResponse) WriteHeader ¶
func (m *MockResponse) WriteHeader(statusCode int)
WriteHeader Write the status code
Click to show internal directories.
Click to hide internal directories.