Documentation
¶
Index ¶
- type View
- func (_m *View) EXPECT() *View_Expecter
- func (_m *View) Exists(_a0 string) bool
- func (_m *View) GetShared() map[string]interface{}
- func (_m *View) LoadViewsFrom(path string)
- func (_m *View) RegisteredViews() []string
- func (_m *View) Share(key string, value interface{})
- func (_m *View) Shared(key string, def ...interface{}) interface{}
- type View_Exists_Call
- type View_Expecter
- func (_e *View_Expecter) Exists(_a0 interface{}) *View_Exists_Call
- func (_e *View_Expecter) GetShared() *View_GetShared_Call
- func (_e *View_Expecter) LoadViewsFrom(path interface{}) *View_LoadViewsFrom_Call
- func (_e *View_Expecter) RegisteredViews() *View_RegisteredViews_Call
- func (_e *View_Expecter) Share(key interface{}, value interface{}) *View_Share_Call
- func (_e *View_Expecter) Shared(key interface{}, def ...interface{}) *View_Shared_Call
- type View_GetShared_Call
- type View_LoadViewsFrom_Call
- type View_RegisteredViews_Call
- type View_Share_Call
- type View_Shared_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type View ¶
View is an autogenerated mock type for the View type
func NewView ¶
NewView creates a new instance of View. 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 (*View) EXPECT ¶
func (_m *View) EXPECT() *View_Expecter
func (*View) LoadViewsFrom ¶ added in v1.18.0
LoadViewsFrom provides a mock function with given fields: path
func (*View) RegisteredViews ¶ added in v1.18.0
RegisteredViews provides a mock function with no fields
type View_Exists_Call ¶
View_Exists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exists'
func (*View_Exists_Call) Return ¶
func (_c *View_Exists_Call) Return(_a0 bool) *View_Exists_Call
func (*View_Exists_Call) Run ¶
func (_c *View_Exists_Call) Run(run func(_a0 string)) *View_Exists_Call
func (*View_Exists_Call) RunAndReturn ¶
func (_c *View_Exists_Call) RunAndReturn(run func(string) bool) *View_Exists_Call
type View_Expecter ¶
type View_Expecter struct {
// contains filtered or unexported fields
}
func (*View_Expecter) Exists ¶
func (_e *View_Expecter) Exists(_a0 interface{}) *View_Exists_Call
Exists is a helper method to define mock.On call
- _a0 string
func (*View_Expecter) GetShared ¶
func (_e *View_Expecter) GetShared() *View_GetShared_Call
GetShared is a helper method to define mock.On call
func (*View_Expecter) LoadViewsFrom ¶ added in v1.18.0
func (_e *View_Expecter) LoadViewsFrom(path interface{}) *View_LoadViewsFrom_Call
LoadViewsFrom is a helper method to define mock.On call
- path string
func (*View_Expecter) RegisteredViews ¶ added in v1.18.0
func (_e *View_Expecter) RegisteredViews() *View_RegisteredViews_Call
RegisteredViews is a helper method to define mock.On call
func (*View_Expecter) Share ¶
func (_e *View_Expecter) Share(key interface{}, value interface{}) *View_Share_Call
Share is a helper method to define mock.On call
- key string
- value interface{}
func (*View_Expecter) Shared ¶
func (_e *View_Expecter) Shared(key interface{}, def ...interface{}) *View_Shared_Call
Shared is a helper method to define mock.On call
- key string
- def ...interface{}
type View_GetShared_Call ¶
type View_GetShared_Call struct {
}
View_GetShared_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetShared'
func (*View_GetShared_Call) Return ¶
func (_c *View_GetShared_Call) Return(_a0 map[string]interface{}) *View_GetShared_Call
func (*View_GetShared_Call) Run ¶
func (_c *View_GetShared_Call) Run(run func()) *View_GetShared_Call
func (*View_GetShared_Call) RunAndReturn ¶
func (_c *View_GetShared_Call) RunAndReturn(run func() map[string]interface{}) *View_GetShared_Call
type View_LoadViewsFrom_Call ¶ added in v1.18.0
View_LoadViewsFrom_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadViewsFrom'
func (*View_LoadViewsFrom_Call) Return ¶ added in v1.18.0
func (_c *View_LoadViewsFrom_Call) Return() *View_LoadViewsFrom_Call
func (*View_LoadViewsFrom_Call) Run ¶ added in v1.18.0
func (_c *View_LoadViewsFrom_Call) Run(run func(path string)) *View_LoadViewsFrom_Call
func (*View_LoadViewsFrom_Call) RunAndReturn ¶ added in v1.18.0
func (_c *View_LoadViewsFrom_Call) RunAndReturn(run func(string)) *View_LoadViewsFrom_Call
type View_RegisteredViews_Call ¶ added in v1.18.0
View_RegisteredViews_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RegisteredViews'
func (*View_RegisteredViews_Call) Return ¶ added in v1.18.0
func (_c *View_RegisteredViews_Call) Return(_a0 []string) *View_RegisteredViews_Call
func (*View_RegisteredViews_Call) Run ¶ added in v1.18.0
func (_c *View_RegisteredViews_Call) Run(run func()) *View_RegisteredViews_Call
func (*View_RegisteredViews_Call) RunAndReturn ¶ added in v1.18.0
func (_c *View_RegisteredViews_Call) RunAndReturn(run func() []string) *View_RegisteredViews_Call
type View_Share_Call ¶
type View_Share_Call struct {
}
View_Share_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Share'
func (*View_Share_Call) Return ¶
func (_c *View_Share_Call) Return() *View_Share_Call
func (*View_Share_Call) Run ¶
func (_c *View_Share_Call) Run(run func(key string, value interface{})) *View_Share_Call
func (*View_Share_Call) RunAndReturn ¶
func (_c *View_Share_Call) RunAndReturn(run func(string, interface{})) *View_Share_Call
type View_Shared_Call ¶
type View_Shared_Call struct {
}
View_Shared_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Shared'
func (*View_Shared_Call) Return ¶
func (_c *View_Shared_Call) Return(_a0 interface{}) *View_Shared_Call
func (*View_Shared_Call) Run ¶
func (_c *View_Shared_Call) Run(run func(key string, def ...interface{})) *View_Shared_Call
func (*View_Shared_Call) RunAndReturn ¶
func (_c *View_Shared_Call) RunAndReturn(run func(string, ...interface{}) interface{}) *View_Shared_Call