Documentation
¶
Index ¶
- type Body
- func (_m *Body) Build() (http.Reader, error)
- func (_m *Body) EXPECT() *Body_Expecter
- func (_m *Body) GetField(key string) interface{}
- func (_m *Body) SetField(key string, value interface{}) http.Body
- func (_m *Body) SetFields(fields map[string]interface{}) http.Body
- func (_m *Body) SetFile(fieldName string, filePath string) http.Body
- func (_m *Body) SetFiles(files map[string][]string) http.Body
- type Body_Build_Call
- type Body_Expecter
- func (_e *Body_Expecter) Build() *Body_Build_Call
- func (_e *Body_Expecter) GetField(key interface{}) *Body_GetField_Call
- func (_e *Body_Expecter) SetField(key interface{}, value interface{}) *Body_SetField_Call
- func (_e *Body_Expecter) SetFields(fields interface{}) *Body_SetFields_Call
- func (_e *Body_Expecter) SetFile(fieldName interface{}, filePath interface{}) *Body_SetFile_Call
- func (_e *Body_Expecter) SetFiles(files interface{}) *Body_SetFiles_Call
- type Body_GetField_Call
- type Body_SetField_Call
- type Body_SetFields_Call
- type Body_SetFile_Call
- type Body_SetFiles_Call
- type Reader
- type Reader_ContentType_Call
- type Reader_Expecter
- type Reader_Reader_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Body ¶
Body is an autogenerated mock type for the Body type
func NewBody ¶
NewBody creates a new instance of Body. 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 (*Body) EXPECT ¶
func (_m *Body) EXPECT() *Body_Expecter
type Body_Build_Call ¶
Body_Build_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Build'
func (*Body_Build_Call) Return ¶
func (_c *Body_Build_Call) Return(_a0 http.Reader, _a1 error) *Body_Build_Call
func (*Body_Build_Call) Run ¶
func (_c *Body_Build_Call) Run(run func()) *Body_Build_Call
func (*Body_Build_Call) RunAndReturn ¶
func (_c *Body_Build_Call) RunAndReturn(run func() (http.Reader, error)) *Body_Build_Call
type Body_Expecter ¶
type Body_Expecter struct {
// contains filtered or unexported fields
}
func (*Body_Expecter) Build ¶
func (_e *Body_Expecter) Build() *Body_Build_Call
Build is a helper method to define mock.On call
func (*Body_Expecter) GetField ¶
func (_e *Body_Expecter) GetField(key interface{}) *Body_GetField_Call
GetField is a helper method to define mock.On call
- key string
func (*Body_Expecter) SetField ¶
func (_e *Body_Expecter) SetField(key interface{}, value interface{}) *Body_SetField_Call
SetField is a helper method to define mock.On call
- key string
- value interface{}
func (*Body_Expecter) SetFields ¶
func (_e *Body_Expecter) SetFields(fields interface{}) *Body_SetFields_Call
SetFields is a helper method to define mock.On call
- fields map[string]interface{}
func (*Body_Expecter) SetFile ¶
func (_e *Body_Expecter) SetFile(fieldName interface{}, filePath interface{}) *Body_SetFile_Call
SetFile is a helper method to define mock.On call
- fieldName string
- filePath string
func (*Body_Expecter) SetFiles ¶
func (_e *Body_Expecter) SetFiles(files interface{}) *Body_SetFiles_Call
SetFiles is a helper method to define mock.On call
- files map[string][]string
type Body_GetField_Call ¶
Body_GetField_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetField'
func (*Body_GetField_Call) Return ¶
func (_c *Body_GetField_Call) Return(_a0 interface{}) *Body_GetField_Call
func (*Body_GetField_Call) Run ¶
func (_c *Body_GetField_Call) Run(run func(key string)) *Body_GetField_Call
func (*Body_GetField_Call) RunAndReturn ¶
func (_c *Body_GetField_Call) RunAndReturn(run func(string) interface{}) *Body_GetField_Call
type Body_SetField_Call ¶
Body_SetField_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetField'
func (*Body_SetField_Call) Return ¶
func (_c *Body_SetField_Call) Return(_a0 http.Body) *Body_SetField_Call
func (*Body_SetField_Call) Run ¶
func (_c *Body_SetField_Call) Run(run func(key string, value interface{})) *Body_SetField_Call
func (*Body_SetField_Call) RunAndReturn ¶
func (_c *Body_SetField_Call) RunAndReturn(run func(string, interface{}) http.Body) *Body_SetField_Call
type Body_SetFields_Call ¶
Body_SetFields_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFields'
func (*Body_SetFields_Call) Return ¶
func (_c *Body_SetFields_Call) Return(_a0 http.Body) *Body_SetFields_Call
func (*Body_SetFields_Call) Run ¶
func (_c *Body_SetFields_Call) Run(run func(fields map[string]interface{})) *Body_SetFields_Call
func (*Body_SetFields_Call) RunAndReturn ¶
func (_c *Body_SetFields_Call) RunAndReturn(run func(map[string]interface{}) http.Body) *Body_SetFields_Call
type Body_SetFile_Call ¶
Body_SetFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFile'
func (*Body_SetFile_Call) Return ¶
func (_c *Body_SetFile_Call) Return(_a0 http.Body) *Body_SetFile_Call
func (*Body_SetFile_Call) Run ¶
func (_c *Body_SetFile_Call) Run(run func(fieldName string, filePath string)) *Body_SetFile_Call
func (*Body_SetFile_Call) RunAndReturn ¶
func (_c *Body_SetFile_Call) RunAndReturn(run func(string, string) http.Body) *Body_SetFile_Call
type Body_SetFiles_Call ¶
Body_SetFiles_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFiles'
func (*Body_SetFiles_Call) Return ¶
func (_c *Body_SetFiles_Call) Return(_a0 http.Body) *Body_SetFiles_Call
func (*Body_SetFiles_Call) Run ¶
func (_c *Body_SetFiles_Call) Run(run func(files map[string][]string)) *Body_SetFiles_Call
func (*Body_SetFiles_Call) RunAndReturn ¶
func (_c *Body_SetFiles_Call) RunAndReturn(run func(map[string][]string) http.Body) *Body_SetFiles_Call
type Reader ¶
Reader is an autogenerated mock type for the Reader type
func NewReader ¶
NewReader creates a new instance of Reader. 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 (*Reader) ContentType ¶
ContentType provides a mock function with no fields
func (*Reader) EXPECT ¶
func (_m *Reader) EXPECT() *Reader_Expecter
type Reader_ContentType_Call ¶
Reader_ContentType_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ContentType'
func (*Reader_ContentType_Call) Return ¶
func (_c *Reader_ContentType_Call) Return(_a0 string) *Reader_ContentType_Call
func (*Reader_ContentType_Call) Run ¶
func (_c *Reader_ContentType_Call) Run(run func()) *Reader_ContentType_Call
func (*Reader_ContentType_Call) RunAndReturn ¶
func (_c *Reader_ContentType_Call) RunAndReturn(run func() string) *Reader_ContentType_Call
type Reader_Expecter ¶
type Reader_Expecter struct {
// contains filtered or unexported fields
}
func (*Reader_Expecter) ContentType ¶
func (_e *Reader_Expecter) ContentType() *Reader_ContentType_Call
ContentType is a helper method to define mock.On call
func (*Reader_Expecter) Reader ¶
func (_e *Reader_Expecter) Reader() *Reader_Reader_Call
Reader is a helper method to define mock.On call
type Reader_Reader_Call ¶
Reader_Reader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Reader'
func (*Reader_Reader_Call) Return ¶
func (_c *Reader_Reader_Call) Return(_a0 io.Reader) *Reader_Reader_Call
func (*Reader_Reader_Call) Run ¶
func (_c *Reader_Reader_Call) Run(run func()) *Reader_Reader_Call
func (*Reader_Reader_Call) RunAndReturn ¶
func (_c *Reader_Reader_Call) RunAndReturn(run func() io.Reader) *Reader_Reader_Call