mocks

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	mock.Mock
}

Service is an autogenerated mock type for the Service type

func NewService added in v1.1.1

func NewService(t interface {
	mock.TestingT
	Cleanup(func())
}) *Service

NewService creates a new instance of Service. 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 (*Service) EXPECT added in v1.1.1

func (_m *Service) EXPECT() *Service_Expecter

func (*Service) Generate

func (_mock *Service) Generate(session *web.Session) string

Generate provides a mock function for the type Service

func (*Service) IsValid

func (_mock *Service) IsValid(request *web.Request) bool

IsValid provides a mock function for the type Service

func (*Service) IsValidHeader

func (_mock *Service) IsValidHeader(request *web.Request) bool

IsValidHeader provides a mock function for the type Service

func (*Service) IsValidPost

func (_mock *Service) IsValidPost(request *web.Request) bool

IsValidPost provides a mock function for the type Service

type Service_Expecter added in v1.1.1

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

func (*Service_Expecter) Generate added in v1.1.1

func (_e *Service_Expecter) Generate(session interface{}) *Service_Generate_Call

Generate is a helper method to define mock.On call

  • session *web.Session

func (*Service_Expecter) IsValid added in v1.1.1

func (_e *Service_Expecter) IsValid(request interface{}) *Service_IsValid_Call

IsValid is a helper method to define mock.On call

  • request *web.Request

func (*Service_Expecter) IsValidHeader added in v1.1.1

func (_e *Service_Expecter) IsValidHeader(request interface{}) *Service_IsValidHeader_Call

IsValidHeader is a helper method to define mock.On call

  • request *web.Request

func (*Service_Expecter) IsValidPost added in v1.1.1

func (_e *Service_Expecter) IsValidPost(request interface{}) *Service_IsValidPost_Call

IsValidPost is a helper method to define mock.On call

  • request *web.Request

type Service_Generate_Call added in v1.1.1

type Service_Generate_Call struct {
	*mock.Call
}

Service_Generate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Generate'

func (*Service_Generate_Call) Return added in v1.1.1

func (*Service_Generate_Call) Run added in v1.1.1

func (_c *Service_Generate_Call) Run(run func(session *web.Session)) *Service_Generate_Call

func (*Service_Generate_Call) RunAndReturn added in v1.1.1

func (_c *Service_Generate_Call) RunAndReturn(run func(session *web.Session) string) *Service_Generate_Call

type Service_IsValidHeader_Call added in v1.1.1

type Service_IsValidHeader_Call struct {
	*mock.Call
}

Service_IsValidHeader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsValidHeader'

func (*Service_IsValidHeader_Call) Return added in v1.1.1

func (*Service_IsValidHeader_Call) Run added in v1.1.1

func (*Service_IsValidHeader_Call) RunAndReturn added in v1.1.1

func (_c *Service_IsValidHeader_Call) RunAndReturn(run func(request *web.Request) bool) *Service_IsValidHeader_Call

type Service_IsValidPost_Call added in v1.1.1

type Service_IsValidPost_Call struct {
	*mock.Call
}

Service_IsValidPost_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsValidPost'

func (*Service_IsValidPost_Call) Return added in v1.1.1

func (*Service_IsValidPost_Call) Run added in v1.1.1

func (_c *Service_IsValidPost_Call) Run(run func(request *web.Request)) *Service_IsValidPost_Call

func (*Service_IsValidPost_Call) RunAndReturn added in v1.1.1

func (_c *Service_IsValidPost_Call) RunAndReturn(run func(request *web.Request) bool) *Service_IsValidPost_Call

type Service_IsValid_Call added in v1.1.1

type Service_IsValid_Call struct {
	*mock.Call
}

Service_IsValid_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsValid'

func (*Service_IsValid_Call) Return added in v1.1.1

func (*Service_IsValid_Call) Run added in v1.1.1

func (_c *Service_IsValid_Call) Run(run func(request *web.Request)) *Service_IsValid_Call

func (*Service_IsValid_Call) RunAndReturn added in v1.1.1

func (_c *Service_IsValid_Call) RunAndReturn(run func(request *web.Request) bool) *Service_IsValid_Call

Jump to

Keyboard shortcuts

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