Documentation
¶
Index ¶
- type MockAssets
- func (_m *MockAssets) EXPECT() *MockAssets_Expecter
- func (_mock *MockAssets) Exists(name string) (fs.FS, error)
- func (_mock *MockAssets) For(names ...string) props.Assets
- func (_mock *MockAssets) Get(name string) fs.FS
- func (_mock *MockAssets) Glob(pattern string) ([]string, error)
- func (_mock *MockAssets) Merge(others ...props.Assets) props.Assets
- func (_mock *MockAssets) Mount(f fs.FS, prefix string)
- func (_mock *MockAssets) Names() []string
- func (_mock *MockAssets) Open(name string) (fs.File, error)
- func (_mock *MockAssets) ReadDir(name string) ([]fs.DirEntry, error)
- func (_mock *MockAssets) Register(name string, fs1 fs.FS)
- func (_mock *MockAssets) Slice() []fs.FS
- func (_mock *MockAssets) Stat(name string) (fs.FileInfo, error)
- type MockAssets_Exists_Call
- type MockAssets_Expecter
- func (_e *MockAssets_Expecter) Exists(name interface{}) *MockAssets_Exists_Call
- func (_e *MockAssets_Expecter) For(names ...interface{}) *MockAssets_For_Call
- func (_e *MockAssets_Expecter) Get(name interface{}) *MockAssets_Get_Call
- func (_e *MockAssets_Expecter) Glob(pattern interface{}) *MockAssets_Glob_Call
- func (_e *MockAssets_Expecter) Merge(others ...interface{}) *MockAssets_Merge_Call
- func (_e *MockAssets_Expecter) Mount(f interface{}, prefix interface{}) *MockAssets_Mount_Call
- func (_e *MockAssets_Expecter) Names() *MockAssets_Names_Call
- func (_e *MockAssets_Expecter) Open(name interface{}) *MockAssets_Open_Call
- func (_e *MockAssets_Expecter) ReadDir(name interface{}) *MockAssets_ReadDir_Call
- func (_e *MockAssets_Expecter) Register(name interface{}, fs1 interface{}) *MockAssets_Register_Call
- func (_e *MockAssets_Expecter) Slice() *MockAssets_Slice_Call
- func (_e *MockAssets_Expecter) Stat(name interface{}) *MockAssets_Stat_Call
- type MockAssets_For_Call
- type MockAssets_Get_Call
- type MockAssets_Glob_Call
- type MockAssets_Merge_Call
- type MockAssets_Mount_Call
- type MockAssets_Names_Call
- type MockAssets_Open_Call
- type MockAssets_ReadDir_Call
- func (_c *MockAssets_ReadDir_Call) Return(dirEntrys []fs.DirEntry, err error) *MockAssets_ReadDir_Call
- func (_c *MockAssets_ReadDir_Call) Run(run func(name string)) *MockAssets_ReadDir_Call
- func (_c *MockAssets_ReadDir_Call) RunAndReturn(run func(name string) ([]fs.DirEntry, error)) *MockAssets_ReadDir_Call
- type MockAssets_Register_Call
- type MockAssets_Slice_Call
- type MockAssets_Stat_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAssets ¶
MockAssets is an autogenerated mock type for the Assets type
func NewMockAssets ¶
func NewMockAssets(t interface {
mock.TestingT
Cleanup(func())
}) *MockAssets
NewMockAssets creates a new instance of MockAssets. 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 (*MockAssets) EXPECT ¶
func (_m *MockAssets) EXPECT() *MockAssets_Expecter
func (*MockAssets) Exists ¶
func (_mock *MockAssets) Exists(name string) (fs.FS, error)
Exists provides a mock function for the type MockAssets
func (*MockAssets) For ¶
func (_mock *MockAssets) For(names ...string) props.Assets
For provides a mock function for the type MockAssets
func (*MockAssets) Get ¶
func (_mock *MockAssets) Get(name string) fs.FS
Get provides a mock function for the type MockAssets
func (*MockAssets) Glob ¶
func (_mock *MockAssets) Glob(pattern string) ([]string, error)
Glob provides a mock function for the type MockAssets
func (*MockAssets) Merge ¶
func (_mock *MockAssets) Merge(others ...props.Assets) props.Assets
Merge provides a mock function for the type MockAssets
func (*MockAssets) Mount ¶
func (_mock *MockAssets) Mount(f fs.FS, prefix string)
Mount provides a mock function for the type MockAssets
func (*MockAssets) Names ¶
func (_mock *MockAssets) Names() []string
Names provides a mock function for the type MockAssets
func (*MockAssets) Open ¶
func (_mock *MockAssets) Open(name string) (fs.File, error)
Open provides a mock function for the type MockAssets
func (*MockAssets) ReadDir ¶
func (_mock *MockAssets) ReadDir(name string) ([]fs.DirEntry, error)
ReadDir provides a mock function for the type MockAssets
func (*MockAssets) Register ¶
func (_mock *MockAssets) Register(name string, fs1 fs.FS)
Register provides a mock function for the type MockAssets
func (*MockAssets) Slice ¶
func (_mock *MockAssets) Slice() []fs.FS
Slice provides a mock function for the type MockAssets
type MockAssets_Exists_Call ¶
MockAssets_Exists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exists'
func (*MockAssets_Exists_Call) Return ¶
func (_c *MockAssets_Exists_Call) Return(fS fs.FS, err error) *MockAssets_Exists_Call
func (*MockAssets_Exists_Call) Run ¶
func (_c *MockAssets_Exists_Call) Run(run func(name string)) *MockAssets_Exists_Call
func (*MockAssets_Exists_Call) RunAndReturn ¶
func (_c *MockAssets_Exists_Call) RunAndReturn(run func(name string) (fs.FS, error)) *MockAssets_Exists_Call
type MockAssets_Expecter ¶
type MockAssets_Expecter struct {
// contains filtered or unexported fields
}
func (*MockAssets_Expecter) Exists ¶
func (_e *MockAssets_Expecter) Exists(name interface{}) *MockAssets_Exists_Call
Exists is a helper method to define mock.On call
- name string
func (*MockAssets_Expecter) For ¶
func (_e *MockAssets_Expecter) For(names ...interface{}) *MockAssets_For_Call
For is a helper method to define mock.On call
- names ...string
func (*MockAssets_Expecter) Get ¶
func (_e *MockAssets_Expecter) Get(name interface{}) *MockAssets_Get_Call
Get is a helper method to define mock.On call
- name string
func (*MockAssets_Expecter) Glob ¶
func (_e *MockAssets_Expecter) Glob(pattern interface{}) *MockAssets_Glob_Call
Glob is a helper method to define mock.On call
- pattern string
func (*MockAssets_Expecter) Merge ¶
func (_e *MockAssets_Expecter) Merge(others ...interface{}) *MockAssets_Merge_Call
Merge is a helper method to define mock.On call
- others ...props.Assets
func (*MockAssets_Expecter) Mount ¶
func (_e *MockAssets_Expecter) Mount(f interface{}, prefix interface{}) *MockAssets_Mount_Call
Mount is a helper method to define mock.On call
- f fs.FS
- prefix string
func (*MockAssets_Expecter) Names ¶
func (_e *MockAssets_Expecter) Names() *MockAssets_Names_Call
Names is a helper method to define mock.On call
func (*MockAssets_Expecter) Open ¶
func (_e *MockAssets_Expecter) Open(name interface{}) *MockAssets_Open_Call
Open is a helper method to define mock.On call
- name string
func (*MockAssets_Expecter) ReadDir ¶
func (_e *MockAssets_Expecter) ReadDir(name interface{}) *MockAssets_ReadDir_Call
ReadDir is a helper method to define mock.On call
- name string
func (*MockAssets_Expecter) Register ¶
func (_e *MockAssets_Expecter) Register(name interface{}, fs1 interface{}) *MockAssets_Register_Call
Register is a helper method to define mock.On call
- name string
- fs1 fs.FS
func (*MockAssets_Expecter) Slice ¶
func (_e *MockAssets_Expecter) Slice() *MockAssets_Slice_Call
Slice is a helper method to define mock.On call
func (*MockAssets_Expecter) Stat ¶
func (_e *MockAssets_Expecter) Stat(name interface{}) *MockAssets_Stat_Call
Stat is a helper method to define mock.On call
- name string
type MockAssets_For_Call ¶
MockAssets_For_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'For'
func (*MockAssets_For_Call) Return ¶
func (_c *MockAssets_For_Call) Return(assets props.Assets) *MockAssets_For_Call
func (*MockAssets_For_Call) Run ¶
func (_c *MockAssets_For_Call) Run(run func(names ...string)) *MockAssets_For_Call
func (*MockAssets_For_Call) RunAndReturn ¶
func (_c *MockAssets_For_Call) RunAndReturn(run func(names ...string) props.Assets) *MockAssets_For_Call
type MockAssets_Get_Call ¶
MockAssets_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*MockAssets_Get_Call) Return ¶
func (_c *MockAssets_Get_Call) Return(fS fs.FS) *MockAssets_Get_Call
func (*MockAssets_Get_Call) Run ¶
func (_c *MockAssets_Get_Call) Run(run func(name string)) *MockAssets_Get_Call
func (*MockAssets_Get_Call) RunAndReturn ¶
func (_c *MockAssets_Get_Call) RunAndReturn(run func(name string) fs.FS) *MockAssets_Get_Call
type MockAssets_Glob_Call ¶
MockAssets_Glob_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Glob'
func (*MockAssets_Glob_Call) Return ¶
func (_c *MockAssets_Glob_Call) Return(strings []string, err error) *MockAssets_Glob_Call
func (*MockAssets_Glob_Call) Run ¶
func (_c *MockAssets_Glob_Call) Run(run func(pattern string)) *MockAssets_Glob_Call
func (*MockAssets_Glob_Call) RunAndReturn ¶
func (_c *MockAssets_Glob_Call) RunAndReturn(run func(pattern string) ([]string, error)) *MockAssets_Glob_Call
type MockAssets_Merge_Call ¶
MockAssets_Merge_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Merge'
func (*MockAssets_Merge_Call) Return ¶
func (_c *MockAssets_Merge_Call) Return(assets props.Assets) *MockAssets_Merge_Call
func (*MockAssets_Merge_Call) Run ¶
func (_c *MockAssets_Merge_Call) Run(run func(others ...props.Assets)) *MockAssets_Merge_Call
func (*MockAssets_Merge_Call) RunAndReturn ¶
func (_c *MockAssets_Merge_Call) RunAndReturn(run func(others ...props.Assets) props.Assets) *MockAssets_Merge_Call
type MockAssets_Mount_Call ¶
MockAssets_Mount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Mount'
func (*MockAssets_Mount_Call) Return ¶
func (_c *MockAssets_Mount_Call) Return() *MockAssets_Mount_Call
func (*MockAssets_Mount_Call) Run ¶
func (_c *MockAssets_Mount_Call) Run(run func(f fs.FS, prefix string)) *MockAssets_Mount_Call
func (*MockAssets_Mount_Call) RunAndReturn ¶
func (_c *MockAssets_Mount_Call) RunAndReturn(run func(f fs.FS, prefix string)) *MockAssets_Mount_Call
type MockAssets_Names_Call ¶
MockAssets_Names_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Names'
func (*MockAssets_Names_Call) Return ¶
func (_c *MockAssets_Names_Call) Return(strings []string) *MockAssets_Names_Call
func (*MockAssets_Names_Call) Run ¶
func (_c *MockAssets_Names_Call) Run(run func()) *MockAssets_Names_Call
func (*MockAssets_Names_Call) RunAndReturn ¶
func (_c *MockAssets_Names_Call) RunAndReturn(run func() []string) *MockAssets_Names_Call
type MockAssets_Open_Call ¶
MockAssets_Open_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Open'
func (*MockAssets_Open_Call) Return ¶
func (_c *MockAssets_Open_Call) Return(file fs.File, err error) *MockAssets_Open_Call
func (*MockAssets_Open_Call) Run ¶
func (_c *MockAssets_Open_Call) Run(run func(name string)) *MockAssets_Open_Call
func (*MockAssets_Open_Call) RunAndReturn ¶
func (_c *MockAssets_Open_Call) RunAndReturn(run func(name string) (fs.File, error)) *MockAssets_Open_Call
type MockAssets_ReadDir_Call ¶
MockAssets_ReadDir_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadDir'
func (*MockAssets_ReadDir_Call) Return ¶
func (_c *MockAssets_ReadDir_Call) Return(dirEntrys []fs.DirEntry, err error) *MockAssets_ReadDir_Call
func (*MockAssets_ReadDir_Call) Run ¶
func (_c *MockAssets_ReadDir_Call) Run(run func(name string)) *MockAssets_ReadDir_Call
func (*MockAssets_ReadDir_Call) RunAndReturn ¶
func (_c *MockAssets_ReadDir_Call) RunAndReturn(run func(name string) ([]fs.DirEntry, error)) *MockAssets_ReadDir_Call
type MockAssets_Register_Call ¶
MockAssets_Register_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Register'
func (*MockAssets_Register_Call) Return ¶
func (_c *MockAssets_Register_Call) Return() *MockAssets_Register_Call
func (*MockAssets_Register_Call) Run ¶
func (_c *MockAssets_Register_Call) Run(run func(name string, fs1 fs.FS)) *MockAssets_Register_Call
func (*MockAssets_Register_Call) RunAndReturn ¶
func (_c *MockAssets_Register_Call) RunAndReturn(run func(name string, fs1 fs.FS)) *MockAssets_Register_Call
type MockAssets_Slice_Call ¶
MockAssets_Slice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Slice'
func (*MockAssets_Slice_Call) Return ¶
func (_c *MockAssets_Slice_Call) Return(fSs []fs.FS) *MockAssets_Slice_Call
func (*MockAssets_Slice_Call) Run ¶
func (_c *MockAssets_Slice_Call) Run(run func()) *MockAssets_Slice_Call
func (*MockAssets_Slice_Call) RunAndReturn ¶
func (_c *MockAssets_Slice_Call) RunAndReturn(run func() []fs.FS) *MockAssets_Slice_Call
type MockAssets_Stat_Call ¶
MockAssets_Stat_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stat'
func (*MockAssets_Stat_Call) Return ¶
func (_c *MockAssets_Stat_Call) Return(fileInfo fs.FileInfo, err error) *MockAssets_Stat_Call
func (*MockAssets_Stat_Call) Run ¶
func (_c *MockAssets_Stat_Call) Run(run func(name string)) *MockAssets_Stat_Call
func (*MockAssets_Stat_Call) RunAndReturn ¶
func (_c *MockAssets_Stat_Call) RunAndReturn(run func(name string) (fs.FileInfo, error)) *MockAssets_Stat_Call