mocks

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

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

func (m *MockContext) Param(s string) string

Param 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

Jump to

Keyboard shortcuts

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