http

package
v1.16.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Body

type Body struct {
	mock.Mock
}

Body is an autogenerated mock type for the Body type

func NewBody

func NewBody(t interface {
	mock.TestingT
	Cleanup(func())
}) *Body

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) Build

func (_m *Body) Build() (http.Reader, error)

Build provides a mock function with no fields

func (*Body) EXPECT

func (_m *Body) EXPECT() *Body_Expecter

func (*Body) GetField

func (_m *Body) GetField(key string) interface{}

GetField provides a mock function with given fields: key

func (*Body) SetField

func (_m *Body) SetField(key string, value interface{}) http.Body

SetField provides a mock function with given fields: key, value

func (*Body) SetFields

func (_m *Body) SetFields(fields map[string]interface{}) http.Body

SetFields provides a mock function with given fields: fields

func (*Body) SetFile

func (_m *Body) SetFile(fieldName string, filePath string) http.Body

SetFile provides a mock function with given fields: fieldName, filePath

func (*Body) SetFiles

func (_m *Body) SetFiles(files map[string][]string) http.Body

SetFiles provides a mock function with given fields: files

type Body_Build_Call

type Body_Build_Call struct {
	*mock.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

type Body_GetField_Call struct {
	*mock.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

type Body_SetField_Call struct {
	*mock.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 (*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

type Body_SetFields_Call struct {
	*mock.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 (*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

type Body_SetFile_Call struct {
	*mock.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

type Body_SetFiles_Call struct {
	*mock.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 (*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

type Reader struct {
	mock.Mock
}

Reader is an autogenerated mock type for the Reader type

func NewReader

func NewReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *Reader

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

func (_m *Reader) ContentType() string

ContentType provides a mock function with no fields

func (*Reader) EXPECT

func (_m *Reader) EXPECT() *Reader_Expecter

func (*Reader) Reader

func (_m *Reader) Reader() io.Reader

Reader provides a mock function with no fields

type Reader_ContentType_Call

type Reader_ContentType_Call struct {
	*mock.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 (*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

type Reader_Reader_Call struct {
	*mock.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 (*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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL