Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockContext
- func (m *MockContext) DataFromReader(code int, contentLength int64, contentType string, reader io.Reader, ...)
- func (m *MockContext) EXPECT() *MockContextMockRecorder
- func (m *MockContext) Error(err error) *gin.Error
- func (m *MockContext) Header(name, value string)
- func (m *MockContext) Param(s string) string
- func (m *MockContext) String(code int, format string, values ...interface{})
- type MockContextMockRecorder
- func (mr *MockContextMockRecorder) DataFromReader(code, contentLength, contentType, reader, extraHeaders interface{}) *gomock.Call
- func (mr *MockContextMockRecorder) Error(err interface{}) *gomock.Call
- func (mr *MockContextMockRecorder) Header(name, value interface{}) *gomock.Call
- func (mr *MockContextMockRecorder) Param(s interface{}) *gomock.Call
- func (mr *MockContextMockRecorder) String(code, format interface{}, values ...interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockContext ¶
type MockContext struct {
// contains filtered or unexported fields
}
MockContext is a mock of Context interface
func NewMockContext ¶
func NewMockContext(ctrl *gomock.Controller) *MockContext
NewMockContext creates a new mock instance
func (*MockContext) DataFromReader ¶
func (m *MockContext) DataFromReader(code int, contentLength int64, contentType string, reader io.Reader, extraHeaders map[string]string)
DataFromReader mocks base method
func (*MockContext) EXPECT ¶
func (m *MockContext) EXPECT() *MockContextMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockContext) Error ¶
func (m *MockContext) Error(err error) *gin.Error
Error mocks base method
func (*MockContext) Header ¶
func (m *MockContext) Header(name, value string)
Header mocks base method
func (*MockContext) String ¶
func (m *MockContext) String(code int, format string, values ...interface{})
String mocks base method
type MockContextMockRecorder ¶
type MockContextMockRecorder struct {
// contains filtered or unexported fields
}
MockContextMockRecorder is the mock recorder for MockContext
func (*MockContextMockRecorder) DataFromReader ¶
func (mr *MockContextMockRecorder) DataFromReader(code, contentLength, contentType, reader, extraHeaders interface{}) *gomock.Call
DataFromReader indicates an expected call of DataFromReader
func (*MockContextMockRecorder) Error ¶
func (mr *MockContextMockRecorder) Error(err interface{}) *gomock.Call
Error indicates an expected call of Error
func (*MockContextMockRecorder) Header ¶
func (mr *MockContextMockRecorder) Header(name, value interface{}) *gomock.Call
Header indicates an expected call of Header
func (*MockContextMockRecorder) Param ¶
func (mr *MockContextMockRecorder) Param(s interface{}) *gomock.Call
Param indicates an expected call of Param
func (*MockContextMockRecorder) String ¶
func (mr *MockContextMockRecorder) String(code, format interface{}, values ...interface{}) *gomock.Call
String indicates an expected call of String
Click to show internal directories.
Click to hide internal directories.