Documentation
¶
Index ¶
- type Modelfile
- func (_m *Modelfile) Content() []byte
- func (_m *Modelfile) EXPECT() *Modelfile_Expecter
- func (_m *Modelfile) GetArch() string
- func (_m *Modelfile) GetCodes() []string
- func (_m *Modelfile) GetConfigs() []string
- func (_m *Modelfile) GetDatasets() []string
- func (_m *Modelfile) GetDocs() []string
- func (_m *Modelfile) GetFamily() string
- func (_m *Modelfile) GetFormat() string
- func (_m *Modelfile) GetModels() []string
- func (_m *Modelfile) GetName() string
- func (_m *Modelfile) GetParamsize() string
- func (_m *Modelfile) GetPrecision() string
- func (_m *Modelfile) GetQuantization() string
- type Modelfile_Content_Call
- type Modelfile_Expecter
- func (_e *Modelfile_Expecter) Content() *Modelfile_Content_Call
- func (_e *Modelfile_Expecter) GetArch() *Modelfile_GetArch_Call
- func (_e *Modelfile_Expecter) GetCodes() *Modelfile_GetCodes_Call
- func (_e *Modelfile_Expecter) GetConfigs() *Modelfile_GetConfigs_Call
- func (_e *Modelfile_Expecter) GetDatasets() *Modelfile_GetDatasets_Call
- func (_e *Modelfile_Expecter) GetDocs() *Modelfile_GetDocs_Call
- func (_e *Modelfile_Expecter) GetFamily() *Modelfile_GetFamily_Call
- func (_e *Modelfile_Expecter) GetFormat() *Modelfile_GetFormat_Call
- func (_e *Modelfile_Expecter) GetModels() *Modelfile_GetModels_Call
- func (_e *Modelfile_Expecter) GetName() *Modelfile_GetName_Call
- func (_e *Modelfile_Expecter) GetParamsize() *Modelfile_GetParamsize_Call
- func (_e *Modelfile_Expecter) GetPrecision() *Modelfile_GetPrecision_Call
- func (_e *Modelfile_Expecter) GetQuantization() *Modelfile_GetQuantization_Call
- type Modelfile_GetArch_Call
- type Modelfile_GetCodes_Call
- type Modelfile_GetConfigs_Call
- type Modelfile_GetDatasets_Call
- type Modelfile_GetDocs_Call
- type Modelfile_GetFamily_Call
- type Modelfile_GetFormat_Call
- type Modelfile_GetModels_Call
- type Modelfile_GetName_Call
- type Modelfile_GetParamsize_Call
- type Modelfile_GetPrecision_Call
- type Modelfile_GetQuantization_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Modelfile ¶
Modelfile is an autogenerated mock type for the Modelfile type
func NewModelfile ¶
NewModelfile creates a new instance of Modelfile. 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 (*Modelfile) EXPECT ¶
func (_m *Modelfile) EXPECT() *Modelfile_Expecter
func (*Modelfile) GetConfigs ¶
GetConfigs provides a mock function with no fields
func (*Modelfile) GetDatasets ¶
GetDatasets provides a mock function with no fields
func (*Modelfile) GetParamsize ¶
GetParamsize provides a mock function with no fields
func (*Modelfile) GetPrecision ¶
GetPrecision provides a mock function with no fields
func (*Modelfile) GetQuantization ¶
GetQuantization provides a mock function with no fields
type Modelfile_Content_Call ¶
Modelfile_Content_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Content'
func (*Modelfile_Content_Call) Return ¶
func (_c *Modelfile_Content_Call) Return(_a0 []byte) *Modelfile_Content_Call
func (*Modelfile_Content_Call) Run ¶
func (_c *Modelfile_Content_Call) Run(run func()) *Modelfile_Content_Call
func (*Modelfile_Content_Call) RunAndReturn ¶
func (_c *Modelfile_Content_Call) RunAndReturn(run func() []byte) *Modelfile_Content_Call
type Modelfile_Expecter ¶
type Modelfile_Expecter struct {
// contains filtered or unexported fields
}
func (*Modelfile_Expecter) Content ¶
func (_e *Modelfile_Expecter) Content() *Modelfile_Content_Call
Content is a helper method to define mock.On call
func (*Modelfile_Expecter) GetArch ¶
func (_e *Modelfile_Expecter) GetArch() *Modelfile_GetArch_Call
GetArch is a helper method to define mock.On call
func (*Modelfile_Expecter) GetCodes ¶
func (_e *Modelfile_Expecter) GetCodes() *Modelfile_GetCodes_Call
GetCodes is a helper method to define mock.On call
func (*Modelfile_Expecter) GetConfigs ¶
func (_e *Modelfile_Expecter) GetConfigs() *Modelfile_GetConfigs_Call
GetConfigs is a helper method to define mock.On call
func (*Modelfile_Expecter) GetDatasets ¶
func (_e *Modelfile_Expecter) GetDatasets() *Modelfile_GetDatasets_Call
GetDatasets is a helper method to define mock.On call
func (*Modelfile_Expecter) GetDocs ¶
func (_e *Modelfile_Expecter) GetDocs() *Modelfile_GetDocs_Call
GetDocs is a helper method to define mock.On call
func (*Modelfile_Expecter) GetFamily ¶
func (_e *Modelfile_Expecter) GetFamily() *Modelfile_GetFamily_Call
GetFamily is a helper method to define mock.On call
func (*Modelfile_Expecter) GetFormat ¶
func (_e *Modelfile_Expecter) GetFormat() *Modelfile_GetFormat_Call
GetFormat is a helper method to define mock.On call
func (*Modelfile_Expecter) GetModels ¶
func (_e *Modelfile_Expecter) GetModels() *Modelfile_GetModels_Call
GetModels is a helper method to define mock.On call
func (*Modelfile_Expecter) GetName ¶
func (_e *Modelfile_Expecter) GetName() *Modelfile_GetName_Call
GetName is a helper method to define mock.On call
func (*Modelfile_Expecter) GetParamsize ¶
func (_e *Modelfile_Expecter) GetParamsize() *Modelfile_GetParamsize_Call
GetParamsize is a helper method to define mock.On call
func (*Modelfile_Expecter) GetPrecision ¶
func (_e *Modelfile_Expecter) GetPrecision() *Modelfile_GetPrecision_Call
GetPrecision is a helper method to define mock.On call
func (*Modelfile_Expecter) GetQuantization ¶
func (_e *Modelfile_Expecter) GetQuantization() *Modelfile_GetQuantization_Call
GetQuantization is a helper method to define mock.On call
type Modelfile_GetArch_Call ¶
Modelfile_GetArch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetArch'
func (*Modelfile_GetArch_Call) Return ¶
func (_c *Modelfile_GetArch_Call) Return(_a0 string) *Modelfile_GetArch_Call
func (*Modelfile_GetArch_Call) Run ¶
func (_c *Modelfile_GetArch_Call) Run(run func()) *Modelfile_GetArch_Call
func (*Modelfile_GetArch_Call) RunAndReturn ¶
func (_c *Modelfile_GetArch_Call) RunAndReturn(run func() string) *Modelfile_GetArch_Call
type Modelfile_GetCodes_Call ¶
Modelfile_GetCodes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCodes'
func (*Modelfile_GetCodes_Call) Return ¶
func (_c *Modelfile_GetCodes_Call) Return(_a0 []string) *Modelfile_GetCodes_Call
func (*Modelfile_GetCodes_Call) Run ¶
func (_c *Modelfile_GetCodes_Call) Run(run func()) *Modelfile_GetCodes_Call
func (*Modelfile_GetCodes_Call) RunAndReturn ¶
func (_c *Modelfile_GetCodes_Call) RunAndReturn(run func() []string) *Modelfile_GetCodes_Call
type Modelfile_GetConfigs_Call ¶
Modelfile_GetConfigs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetConfigs'
func (*Modelfile_GetConfigs_Call) Return ¶
func (_c *Modelfile_GetConfigs_Call) Return(_a0 []string) *Modelfile_GetConfigs_Call
func (*Modelfile_GetConfigs_Call) Run ¶
func (_c *Modelfile_GetConfigs_Call) Run(run func()) *Modelfile_GetConfigs_Call
func (*Modelfile_GetConfigs_Call) RunAndReturn ¶
func (_c *Modelfile_GetConfigs_Call) RunAndReturn(run func() []string) *Modelfile_GetConfigs_Call
type Modelfile_GetDatasets_Call ¶
Modelfile_GetDatasets_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDatasets'
func (*Modelfile_GetDatasets_Call) Return ¶
func (_c *Modelfile_GetDatasets_Call) Return(_a0 []string) *Modelfile_GetDatasets_Call
func (*Modelfile_GetDatasets_Call) Run ¶
func (_c *Modelfile_GetDatasets_Call) Run(run func()) *Modelfile_GetDatasets_Call
func (*Modelfile_GetDatasets_Call) RunAndReturn ¶
func (_c *Modelfile_GetDatasets_Call) RunAndReturn(run func() []string) *Modelfile_GetDatasets_Call
type Modelfile_GetDocs_Call ¶
Modelfile_GetDocs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDocs'
func (*Modelfile_GetDocs_Call) Return ¶
func (_c *Modelfile_GetDocs_Call) Return(_a0 []string) *Modelfile_GetDocs_Call
func (*Modelfile_GetDocs_Call) Run ¶
func (_c *Modelfile_GetDocs_Call) Run(run func()) *Modelfile_GetDocs_Call
func (*Modelfile_GetDocs_Call) RunAndReturn ¶
func (_c *Modelfile_GetDocs_Call) RunAndReturn(run func() []string) *Modelfile_GetDocs_Call
type Modelfile_GetFamily_Call ¶
Modelfile_GetFamily_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFamily'
func (*Modelfile_GetFamily_Call) Return ¶
func (_c *Modelfile_GetFamily_Call) Return(_a0 string) *Modelfile_GetFamily_Call
func (*Modelfile_GetFamily_Call) Run ¶
func (_c *Modelfile_GetFamily_Call) Run(run func()) *Modelfile_GetFamily_Call
func (*Modelfile_GetFamily_Call) RunAndReturn ¶
func (_c *Modelfile_GetFamily_Call) RunAndReturn(run func() string) *Modelfile_GetFamily_Call
type Modelfile_GetFormat_Call ¶
Modelfile_GetFormat_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFormat'
func (*Modelfile_GetFormat_Call) Return ¶
func (_c *Modelfile_GetFormat_Call) Return(_a0 string) *Modelfile_GetFormat_Call
func (*Modelfile_GetFormat_Call) Run ¶
func (_c *Modelfile_GetFormat_Call) Run(run func()) *Modelfile_GetFormat_Call
func (*Modelfile_GetFormat_Call) RunAndReturn ¶
func (_c *Modelfile_GetFormat_Call) RunAndReturn(run func() string) *Modelfile_GetFormat_Call
type Modelfile_GetModels_Call ¶
Modelfile_GetModels_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetModels'
func (*Modelfile_GetModels_Call) Return ¶
func (_c *Modelfile_GetModels_Call) Return(_a0 []string) *Modelfile_GetModels_Call
func (*Modelfile_GetModels_Call) Run ¶
func (_c *Modelfile_GetModels_Call) Run(run func()) *Modelfile_GetModels_Call
func (*Modelfile_GetModels_Call) RunAndReturn ¶
func (_c *Modelfile_GetModels_Call) RunAndReturn(run func() []string) *Modelfile_GetModels_Call
type Modelfile_GetName_Call ¶
Modelfile_GetName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetName'
func (*Modelfile_GetName_Call) Return ¶
func (_c *Modelfile_GetName_Call) Return(_a0 string) *Modelfile_GetName_Call
func (*Modelfile_GetName_Call) Run ¶
func (_c *Modelfile_GetName_Call) Run(run func()) *Modelfile_GetName_Call
func (*Modelfile_GetName_Call) RunAndReturn ¶
func (_c *Modelfile_GetName_Call) RunAndReturn(run func() string) *Modelfile_GetName_Call
type Modelfile_GetParamsize_Call ¶
Modelfile_GetParamsize_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetParamsize'
func (*Modelfile_GetParamsize_Call) Return ¶
func (_c *Modelfile_GetParamsize_Call) Return(_a0 string) *Modelfile_GetParamsize_Call
func (*Modelfile_GetParamsize_Call) Run ¶
func (_c *Modelfile_GetParamsize_Call) Run(run func()) *Modelfile_GetParamsize_Call
func (*Modelfile_GetParamsize_Call) RunAndReturn ¶
func (_c *Modelfile_GetParamsize_Call) RunAndReturn(run func() string) *Modelfile_GetParamsize_Call
type Modelfile_GetPrecision_Call ¶
Modelfile_GetPrecision_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPrecision'
func (*Modelfile_GetPrecision_Call) Return ¶
func (_c *Modelfile_GetPrecision_Call) Return(_a0 string) *Modelfile_GetPrecision_Call
func (*Modelfile_GetPrecision_Call) Run ¶
func (_c *Modelfile_GetPrecision_Call) Run(run func()) *Modelfile_GetPrecision_Call
func (*Modelfile_GetPrecision_Call) RunAndReturn ¶
func (_c *Modelfile_GetPrecision_Call) RunAndReturn(run func() string) *Modelfile_GetPrecision_Call
type Modelfile_GetQuantization_Call ¶
Modelfile_GetQuantization_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetQuantization'
func (*Modelfile_GetQuantization_Call) Return ¶
func (_c *Modelfile_GetQuantization_Call) Return(_a0 string) *Modelfile_GetQuantization_Call
func (*Modelfile_GetQuantization_Call) Run ¶
func (_c *Modelfile_GetQuantization_Call) Run(run func()) *Modelfile_GetQuantization_Call
func (*Modelfile_GetQuantization_Call) RunAndReturn ¶
func (_c *Modelfile_GetQuantization_Call) RunAndReturn(run func() string) *Modelfile_GetQuantization_Call