Documentation
¶
Index ¶
- type MockManager
- type MockManager_Expecter
- func (_e *MockManager_Expecter) Fetch(ctx interface{}, kind interface{}, id interface{}, src interface{}) *MockManager_Fetch_Call
- func (_e *MockManager_Expecter) Path(kind interface{}, id interface{}) *MockManager_Path_Call
- func (_e *MockManager_Expecter) Serve(w interface{}, r interface{}, kind interface{}, id interface{}) *MockManager_Serve_Call
- type MockManager_Fetch_Call
- func (_c *MockManager_Fetch_Call) Return(_a0 error) *MockManager_Fetch_Call
- func (_c *MockManager_Fetch_Call) Run(run func(ctx context.Context, kind string, id uint32, src string)) *MockManager_Fetch_Call
- func (_c *MockManager_Fetch_Call) RunAndReturn(run func(context.Context, string, uint32, string) error) *MockManager_Fetch_Call
- type MockManager_Path_Call
- type MockManager_Serve_Call
- func (_c *MockManager_Serve_Call) Return() *MockManager_Serve_Call
- func (_c *MockManager_Serve_Call) Run(run func(w http.ResponseWriter, r *http.Request, kind string, id uint32)) *MockManager_Serve_Call
- func (_c *MockManager_Serve_Call) RunAndReturn(run func(http.ResponseWriter, *http.Request, string, uint32)) *MockManager_Serve_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockManager ¶
MockManager is an autogenerated mock type for the Manager type
func NewMockManager ¶
func NewMockManager(t interface {
mock.TestingT
Cleanup(func())
}) *MockManager
NewMockManager creates a new instance of MockManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockManager) EXPECT ¶
func (_m *MockManager) EXPECT() *MockManager_Expecter
func (*MockManager) Path ¶
func (_m *MockManager) Path(kind string, id uint32) string
Path provides a mock function with given fields: kind, id
func (*MockManager) Serve ¶
func (_m *MockManager) Serve(w http.ResponseWriter, r *http.Request, kind string, id uint32)
Serve provides a mock function with given fields: w, r, kind, id
type MockManager_Expecter ¶
type MockManager_Expecter struct {
// contains filtered or unexported fields
}
func (*MockManager_Expecter) Fetch ¶
func (_e *MockManager_Expecter) Fetch(ctx interface{}, kind interface{}, id interface{}, src interface{}) *MockManager_Fetch_Call
Fetch is a helper method to define mock.On call
- ctx context.Context
- kind string
- id uint32
- src string
func (*MockManager_Expecter) Path ¶
func (_e *MockManager_Expecter) Path(kind interface{}, id interface{}) *MockManager_Path_Call
Path is a helper method to define mock.On call
- kind string
- id uint32
func (*MockManager_Expecter) Serve ¶
func (_e *MockManager_Expecter) Serve(w interface{}, r interface{}, kind interface{}, id interface{}) *MockManager_Serve_Call
Serve is a helper method to define mock.On call
- w http.ResponseWriter
- r *http.Request
- kind string
- id uint32
type MockManager_Fetch_Call ¶
MockManager_Fetch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Fetch'
func (*MockManager_Fetch_Call) Return ¶
func (_c *MockManager_Fetch_Call) Return(_a0 error) *MockManager_Fetch_Call
func (*MockManager_Fetch_Call) Run ¶
func (_c *MockManager_Fetch_Call) Run(run func(ctx context.Context, kind string, id uint32, src string)) *MockManager_Fetch_Call
func (*MockManager_Fetch_Call) RunAndReturn ¶
func (_c *MockManager_Fetch_Call) RunAndReturn(run func(context.Context, string, uint32, string) error) *MockManager_Fetch_Call
type MockManager_Path_Call ¶
MockManager_Path_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Path'
func (*MockManager_Path_Call) Return ¶
func (_c *MockManager_Path_Call) Return(_a0 string) *MockManager_Path_Call
func (*MockManager_Path_Call) Run ¶
func (_c *MockManager_Path_Call) Run(run func(kind string, id uint32)) *MockManager_Path_Call
func (*MockManager_Path_Call) RunAndReturn ¶
func (_c *MockManager_Path_Call) RunAndReturn(run func(string, uint32) string) *MockManager_Path_Call
type MockManager_Serve_Call ¶
MockManager_Serve_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Serve'
func (*MockManager_Serve_Call) Return ¶
func (_c *MockManager_Serve_Call) Return() *MockManager_Serve_Call
func (*MockManager_Serve_Call) Run ¶
func (_c *MockManager_Serve_Call) Run(run func(w http.ResponseWriter, r *http.Request, kind string, id uint32)) *MockManager_Serve_Call
func (*MockManager_Serve_Call) RunAndReturn ¶
func (_c *MockManager_Serve_Call) RunAndReturn(run func(http.ResponseWriter, *http.Request, string, uint32)) *MockManager_Serve_Call