mock_echo

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package mock_echo 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) Attachment

func (m *MockContext) Attachment(file, name string) error

Attachment mocks base method.

func (*MockContext) Bind

func (m *MockContext) Bind(i interface{}) error

Bind mocks base method.

func (*MockContext) Blob

func (m *MockContext) Blob(code int, contentType string, b []byte) error

Blob mocks base method.

func (*MockContext) Cookie

func (m *MockContext) Cookie(name string) (*http.Cookie, error)

Cookie mocks base method.

func (*MockContext) Cookies

func (m *MockContext) Cookies() []*http.Cookie

Cookies 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) Echo

func (m *MockContext) Echo() *echo.Echo

Echo mocks base method.

func (*MockContext) Error

func (m *MockContext) Error(err error)

Error mocks base method.

func (*MockContext) File

func (m *MockContext) File(file string) error

File mocks base method.

func (*MockContext) FormFile

func (m *MockContext) FormFile(name string) (*multipart.FileHeader, error)

FormFile mocks base method.

func (*MockContext) FormParams

func (m *MockContext) FormParams() (url.Values, error)

FormParams mocks base method.

func (*MockContext) FormValue

func (m *MockContext) FormValue(name string) string

FormValue mocks base method.

func (*MockContext) Get

func (m *MockContext) Get(key string) interface{}

Get mocks base method.

func (*MockContext) HTML

func (m *MockContext) HTML(code int, html string) error

HTML mocks base method.

func (*MockContext) HTMLBlob

func (m *MockContext) HTMLBlob(code int, b []byte) error

HTMLBlob mocks base method.

func (*MockContext) Handler

func (m *MockContext) Handler() echo.HandlerFunc

Handler mocks base method.

func (*MockContext) Inline

func (m *MockContext) Inline(file, name string) error

Inline mocks base method.

func (*MockContext) IsTLS

func (m *MockContext) IsTLS() bool

IsTLS mocks base method.

func (*MockContext) IsWebSocket

func (m *MockContext) IsWebSocket() bool

IsWebSocket mocks base method.

func (*MockContext) JSON

func (m *MockContext) JSON(code int, i interface{}) error

JSON mocks base method.

func (*MockContext) JSONBlob

func (m *MockContext) JSONBlob(code int, b []byte) error

JSONBlob mocks base method.

func (*MockContext) JSONP

func (m *MockContext) JSONP(code int, callback string, i interface{}) error

JSONP mocks base method.

func (*MockContext) JSONPBlob

func (m *MockContext) JSONPBlob(code int, callback string, b []byte) error

JSONPBlob mocks base method.

func (*MockContext) JSONPretty

func (m *MockContext) JSONPretty(code int, i interface{}, indent string) error

JSONPretty mocks base method.

func (*MockContext) Logger

func (m *MockContext) Logger() echo.Logger

Logger mocks base method.

func (*MockContext) MultipartForm

func (m *MockContext) MultipartForm() (*multipart.Form, error)

MultipartForm mocks base method.

func (*MockContext) NoContent

func (m *MockContext) NoContent(code int) error

NoContent mocks base method.

func (*MockContext) Param

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

Param mocks base method.

func (*MockContext) ParamNames

func (m *MockContext) ParamNames() []string

ParamNames mocks base method.

func (*MockContext) ParamValues

func (m *MockContext) ParamValues() []string

ParamValues mocks base method.

func (*MockContext) Path

func (m *MockContext) Path() string

Path mocks base method.

func (*MockContext) QueryParam

func (m *MockContext) QueryParam(name string) string

QueryParam mocks base method.

func (*MockContext) QueryParams

func (m *MockContext) QueryParams() url.Values

QueryParams mocks base method.

func (*MockContext) QueryString

func (m *MockContext) QueryString() string

QueryString mocks base method.

func (*MockContext) RealIP

func (m *MockContext) RealIP() string

RealIP mocks base method.

func (*MockContext) Redirect

func (m *MockContext) Redirect(code int, url string) error

Redirect mocks base method.

func (*MockContext) Render

func (m *MockContext) Render(code int, name string, data interface{}) error

Render mocks base method.

func (*MockContext) Request

func (m *MockContext) Request() *http.Request

Request mocks base method.

func (*MockContext) Reset

func (m *MockContext) Reset(r *http.Request, w http.ResponseWriter)

Reset mocks base method.

func (*MockContext) Response

func (m *MockContext) Response() *echo.Response

Response mocks base method.

func (*MockContext) Scheme

func (m *MockContext) Scheme() string

Scheme mocks base method.

func (*MockContext) Set

func (m *MockContext) Set(key string, val interface{})

Set mocks base method.

func (*MockContext) SetCookie

func (m *MockContext) SetCookie(cookie *http.Cookie)

SetCookie mocks base method.

func (*MockContext) SetHandler

func (m *MockContext) SetHandler(h echo.HandlerFunc)

SetHandler mocks base method.

func (*MockContext) SetLogger

func (m *MockContext) SetLogger(l echo.Logger)

SetLogger mocks base method.

func (*MockContext) SetParamNames

func (m *MockContext) SetParamNames(names ...string)

SetParamNames mocks base method.

func (*MockContext) SetParamValues

func (m *MockContext) SetParamValues(values ...string)

SetParamValues mocks base method.

func (*MockContext) SetPath

func (m *MockContext) SetPath(p string)

SetPath mocks base method.

func (*MockContext) SetRequest

func (m *MockContext) SetRequest(r *http.Request)

SetRequest mocks base method.

func (*MockContext) SetResponse

func (m *MockContext) SetResponse(r *echo.Response)

SetResponse mocks base method.

func (*MockContext) Stream

func (m *MockContext) Stream(code int, contentType string, r io.Reader) error

Stream mocks base method.

func (*MockContext) String

func (m *MockContext) String(code int, s string) error

String mocks base method.

func (*MockContext) Validate

func (m *MockContext) Validate(i interface{}) error

Validate mocks base method.

func (*MockContext) XML

func (m *MockContext) XML(code int, i interface{}) error

XML mocks base method.

func (*MockContext) XMLBlob

func (m *MockContext) XMLBlob(code int, b []byte) error

XMLBlob mocks base method.

func (*MockContext) XMLPretty

func (m *MockContext) XMLPretty(code int, i interface{}, indent string) error

XMLPretty mocks base method.

type MockContextMockRecorder

type MockContextMockRecorder struct {
	// contains filtered or unexported fields
}

MockContextMockRecorder is the mock recorder for MockContext.

func (*MockContextMockRecorder) Attachment

func (mr *MockContextMockRecorder) Attachment(file, name interface{}) *gomock.Call

Attachment indicates an expected call of Attachment.

func (*MockContextMockRecorder) Bind

func (mr *MockContextMockRecorder) Bind(i interface{}) *gomock.Call

Bind indicates an expected call of Bind.

func (*MockContextMockRecorder) Blob

func (mr *MockContextMockRecorder) Blob(code, contentType, b interface{}) *gomock.Call

Blob indicates an expected call of Blob.

func (*MockContextMockRecorder) Cookie

func (mr *MockContextMockRecorder) Cookie(name interface{}) *gomock.Call

Cookie indicates an expected call of Cookie.

func (*MockContextMockRecorder) Cookies

func (mr *MockContextMockRecorder) Cookies() *gomock.Call

Cookies indicates an expected call of Cookies.

func (*MockContextMockRecorder) Echo

func (mr *MockContextMockRecorder) Echo() *gomock.Call

Echo indicates an expected call of Echo.

func (*MockContextMockRecorder) Error

func (mr *MockContextMockRecorder) Error(err interface{}) *gomock.Call

Error indicates an expected call of Error.

func (*MockContextMockRecorder) File

func (mr *MockContextMockRecorder) File(file interface{}) *gomock.Call

File indicates an expected call of File.

func (*MockContextMockRecorder) FormFile

func (mr *MockContextMockRecorder) FormFile(name interface{}) *gomock.Call

FormFile indicates an expected call of FormFile.

func (*MockContextMockRecorder) FormParams

func (mr *MockContextMockRecorder) FormParams() *gomock.Call

FormParams indicates an expected call of FormParams.

func (*MockContextMockRecorder) FormValue

func (mr *MockContextMockRecorder) FormValue(name interface{}) *gomock.Call

FormValue indicates an expected call of FormValue.

func (*MockContextMockRecorder) Get

func (mr *MockContextMockRecorder) Get(key interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockContextMockRecorder) HTML

func (mr *MockContextMockRecorder) HTML(code, html interface{}) *gomock.Call

HTML indicates an expected call of HTML.

func (*MockContextMockRecorder) HTMLBlob

func (mr *MockContextMockRecorder) HTMLBlob(code, b interface{}) *gomock.Call

HTMLBlob indicates an expected call of HTMLBlob.

func (*MockContextMockRecorder) Handler

func (mr *MockContextMockRecorder) Handler() *gomock.Call

Handler indicates an expected call of Handler.

func (*MockContextMockRecorder) Inline

func (mr *MockContextMockRecorder) Inline(file, name interface{}) *gomock.Call

Inline indicates an expected call of Inline.

func (*MockContextMockRecorder) IsTLS

func (mr *MockContextMockRecorder) IsTLS() *gomock.Call

IsTLS indicates an expected call of IsTLS.

func (*MockContextMockRecorder) IsWebSocket

func (mr *MockContextMockRecorder) IsWebSocket() *gomock.Call

IsWebSocket indicates an expected call of IsWebSocket.

func (*MockContextMockRecorder) JSON

func (mr *MockContextMockRecorder) JSON(code, i interface{}) *gomock.Call

JSON indicates an expected call of JSON.

func (*MockContextMockRecorder) JSONBlob

func (mr *MockContextMockRecorder) JSONBlob(code, b interface{}) *gomock.Call

JSONBlob indicates an expected call of JSONBlob.

func (*MockContextMockRecorder) JSONP

func (mr *MockContextMockRecorder) JSONP(code, callback, i interface{}) *gomock.Call

JSONP indicates an expected call of JSONP.

func (*MockContextMockRecorder) JSONPBlob

func (mr *MockContextMockRecorder) JSONPBlob(code, callback, b interface{}) *gomock.Call

JSONPBlob indicates an expected call of JSONPBlob.

func (*MockContextMockRecorder) JSONPretty

func (mr *MockContextMockRecorder) JSONPretty(code, i, indent interface{}) *gomock.Call

JSONPretty indicates an expected call of JSONPretty.

func (*MockContextMockRecorder) Logger

func (mr *MockContextMockRecorder) Logger() *gomock.Call

Logger indicates an expected call of Logger.

func (*MockContextMockRecorder) MultipartForm

func (mr *MockContextMockRecorder) MultipartForm() *gomock.Call

MultipartForm indicates an expected call of MultipartForm.

func (*MockContextMockRecorder) NoContent

func (mr *MockContextMockRecorder) NoContent(code interface{}) *gomock.Call

NoContent indicates an expected call of NoContent.

func (*MockContextMockRecorder) Param

func (mr *MockContextMockRecorder) Param(name interface{}) *gomock.Call

Param indicates an expected call of Param.

func (*MockContextMockRecorder) ParamNames

func (mr *MockContextMockRecorder) ParamNames() *gomock.Call

ParamNames indicates an expected call of ParamNames.

func (*MockContextMockRecorder) ParamValues

func (mr *MockContextMockRecorder) ParamValues() *gomock.Call

ParamValues indicates an expected call of ParamValues.

func (*MockContextMockRecorder) Path

func (mr *MockContextMockRecorder) Path() *gomock.Call

Path indicates an expected call of Path.

func (*MockContextMockRecorder) QueryParam

func (mr *MockContextMockRecorder) QueryParam(name interface{}) *gomock.Call

QueryParam indicates an expected call of QueryParam.

func (*MockContextMockRecorder) QueryParams

func (mr *MockContextMockRecorder) QueryParams() *gomock.Call

QueryParams indicates an expected call of QueryParams.

func (*MockContextMockRecorder) QueryString

func (mr *MockContextMockRecorder) QueryString() *gomock.Call

QueryString indicates an expected call of QueryString.

func (*MockContextMockRecorder) RealIP

func (mr *MockContextMockRecorder) RealIP() *gomock.Call

RealIP indicates an expected call of RealIP.

func (*MockContextMockRecorder) Redirect

func (mr *MockContextMockRecorder) Redirect(code, url interface{}) *gomock.Call

Redirect indicates an expected call of Redirect.

func (*MockContextMockRecorder) Render

func (mr *MockContextMockRecorder) Render(code, name, data interface{}) *gomock.Call

Render indicates an expected call of Render.

func (*MockContextMockRecorder) Request

func (mr *MockContextMockRecorder) Request() *gomock.Call

Request indicates an expected call of Request.

func (*MockContextMockRecorder) Reset

func (mr *MockContextMockRecorder) Reset(r, w interface{}) *gomock.Call

Reset indicates an expected call of Reset.

func (*MockContextMockRecorder) Response

func (mr *MockContextMockRecorder) Response() *gomock.Call

Response indicates an expected call of Response.

func (*MockContextMockRecorder) Scheme

func (mr *MockContextMockRecorder) Scheme() *gomock.Call

Scheme indicates an expected call of Scheme.

func (*MockContextMockRecorder) Set

func (mr *MockContextMockRecorder) Set(key, val interface{}) *gomock.Call

Set indicates an expected call of Set.

func (*MockContextMockRecorder) SetCookie

func (mr *MockContextMockRecorder) SetCookie(cookie interface{}) *gomock.Call

SetCookie indicates an expected call of SetCookie.

func (*MockContextMockRecorder) SetHandler

func (mr *MockContextMockRecorder) SetHandler(h interface{}) *gomock.Call

SetHandler indicates an expected call of SetHandler.

func (*MockContextMockRecorder) SetLogger

func (mr *MockContextMockRecorder) SetLogger(l interface{}) *gomock.Call

SetLogger indicates an expected call of SetLogger.

func (*MockContextMockRecorder) SetParamNames

func (mr *MockContextMockRecorder) SetParamNames(names ...interface{}) *gomock.Call

SetParamNames indicates an expected call of SetParamNames.

func (*MockContextMockRecorder) SetParamValues

func (mr *MockContextMockRecorder) SetParamValues(values ...interface{}) *gomock.Call

SetParamValues indicates an expected call of SetParamValues.

func (*MockContextMockRecorder) SetPath

func (mr *MockContextMockRecorder) SetPath(p interface{}) *gomock.Call

SetPath indicates an expected call of SetPath.

func (*MockContextMockRecorder) SetRequest

func (mr *MockContextMockRecorder) SetRequest(r interface{}) *gomock.Call

SetRequest indicates an expected call of SetRequest.

func (*MockContextMockRecorder) SetResponse

func (mr *MockContextMockRecorder) SetResponse(r interface{}) *gomock.Call

SetResponse indicates an expected call of SetResponse.

func (*MockContextMockRecorder) Stream

func (mr *MockContextMockRecorder) Stream(code, contentType, r interface{}) *gomock.Call

Stream indicates an expected call of Stream.

func (*MockContextMockRecorder) String

func (mr *MockContextMockRecorder) String(code, s interface{}) *gomock.Call

String indicates an expected call of String.

func (*MockContextMockRecorder) Validate

func (mr *MockContextMockRecorder) Validate(i interface{}) *gomock.Call

Validate indicates an expected call of Validate.

func (*MockContextMockRecorder) XML

func (mr *MockContextMockRecorder) XML(code, i interface{}) *gomock.Call

XML indicates an expected call of XML.

func (*MockContextMockRecorder) XMLBlob

func (mr *MockContextMockRecorder) XMLBlob(code, b interface{}) *gomock.Call

XMLBlob indicates an expected call of XMLBlob.

func (*MockContextMockRecorder) XMLPretty

func (mr *MockContextMockRecorder) XMLPretty(code, i, indent interface{}) *gomock.Call

XMLPretty indicates an expected call of XMLPretty.

Jump to

Keyboard shortcuts

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