automock

package
v0.0.0-...-92e9cf4 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConverter

type AuthConverter struct {
	mock.Mock
}

AuthConverter is an autogenerated mock type for the AuthConverter type

func NewAuthConverter

func NewAuthConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *AuthConverter

NewAuthConverter creates a new instance of AuthConverter. 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 (*AuthConverter) InputFromGraphQL

func (_m *AuthConverter) InputFromGraphQL(in *graphql.AuthInput) (*model.AuthInput, error)

InputFromGraphQL provides a mock function with given fields: in

func (*AuthConverter) ToGraphQL

func (_m *AuthConverter) ToGraphQL(in *model.Auth) (*graphql.Auth, error)

ToGraphQL provides a mock function with given fields: in

type Converter

type Converter struct {
	mock.Mock
}

Converter is an autogenerated mock type for the Converter type

func NewConverter

func NewConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *Converter

NewConverter creates a new instance of Converter. 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 (*Converter) FromEntity

FromEntity provides a mock function with given fields: in, objectType

func (*Converter) ToEntity

func (_m *Converter) ToEntity(in *model.FetchRequest) (*fetchrequest.Entity, error)

ToEntity provides a mock function with given fields: in

type FetchRequestRepository

type FetchRequestRepository struct {
	mock.Mock
}

FetchRequestRepository is an autogenerated mock type for the FetchRequestRepository type

func NewFetchRequestRepository

func NewFetchRequestRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *FetchRequestRepository

NewFetchRequestRepository creates a new instance of FetchRequestRepository. 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 (*FetchRequestRepository) Update

func (_m *FetchRequestRepository) Update(ctx context.Context, tenant string, item *model.FetchRequest) error

Update provides a mock function with given fields: ctx, tenant, item

func (*FetchRequestRepository) UpdateGlobal

func (_m *FetchRequestRepository) UpdateGlobal(ctx context.Context, item *model.FetchRequest) error

UpdateGlobal provides a mock function with given fields: ctx, item

Jump to

Keyboard shortcuts

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