daomocks

package
v0.0.0-...-ca2b8f7 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCreateCredentials

type MockCreateCredentials struct {
	mock.Mock
}

MockCreateCredentials is an autogenerated mock type for the CreateCredentials type

func NewMockCreateCredentials

func NewMockCreateCredentials(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockCreateCredentials

NewMockCreateCredentials creates a new instance of MockCreateCredentials. 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 (*MockCreateCredentials) EXPECT

func (*MockCreateCredentials) Exec

Exec provides a mock function with given fields: ctx, id, now, request

type MockCreateCredentials_Exec_Call

type MockCreateCredentials_Exec_Call struct {
	*mock.Call
}

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

func (*MockCreateCredentials_Exec_Call) Return

func (*MockCreateCredentials_Exec_Call) Run

type MockCreateCredentials_Expecter

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

func (*MockCreateCredentials_Expecter) Exec

func (_e *MockCreateCredentials_Expecter) Exec(ctx interface{}, id interface{}, now interface{}, request interface{}) *MockCreateCredentials_Exec_Call

Exec is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID
  • now time.Time
  • request *dao.CreateCredentialsRequest

type MockExistsCredentials

type MockExistsCredentials struct {
	mock.Mock
}

MockExistsCredentials is an autogenerated mock type for the ExistsCredentials type

func NewMockExistsCredentials

func NewMockExistsCredentials(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockExistsCredentials

NewMockExistsCredentials creates a new instance of MockExistsCredentials. 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 (*MockExistsCredentials) EXPECT

func (*MockExistsCredentials) Exec

Exec provides a mock function with given fields: ctx, request

type MockExistsCredentials_Exec_Call

type MockExistsCredentials_Exec_Call struct {
	*mock.Call
}

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

func (*MockExistsCredentials_Exec_Call) Return

func (*MockExistsCredentials_Exec_Call) Run

func (*MockExistsCredentials_Exec_Call) RunAndReturn

type MockExistsCredentials_Expecter

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

func (*MockExistsCredentials_Expecter) Exec

func (_e *MockExistsCredentials_Expecter) Exec(ctx interface{}, request interface{}) *MockExistsCredentials_Exec_Call

Exec is a helper method to define mock.On call

  • ctx context.Context
  • request *dao.ExistsCredentialsRequest

type MockGetCredentials

type MockGetCredentials struct {
	mock.Mock
}

MockGetCredentials is an autogenerated mock type for the GetCredentials type

func NewMockGetCredentials

func NewMockGetCredentials(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockGetCredentials

NewMockGetCredentials creates a new instance of MockGetCredentials. 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 (*MockGetCredentials) EXPECT

func (*MockGetCredentials) Exec

Exec provides a mock function with given fields: ctx, request

type MockGetCredentials_Exec_Call

type MockGetCredentials_Exec_Call struct {
	*mock.Call
}

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

func (*MockGetCredentials_Exec_Call) Return

func (*MockGetCredentials_Exec_Call) Run

func (*MockGetCredentials_Exec_Call) RunAndReturn

type MockGetCredentials_Expecter

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

func (*MockGetCredentials_Expecter) Exec

func (_e *MockGetCredentials_Expecter) Exec(ctx interface{}, request interface{}) *MockGetCredentials_Exec_Call

Exec is a helper method to define mock.On call

  • ctx context.Context
  • request *dao.GetCredentialsRequest

type MockListCredentials

type MockListCredentials struct {
	mock.Mock
}

MockListCredentials is an autogenerated mock type for the ListCredentials type

func NewMockListCredentials

func NewMockListCredentials(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockListCredentials

NewMockListCredentials creates a new instance of MockListCredentials. 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 (*MockListCredentials) EXPECT

func (*MockListCredentials) Exec

func (_m *MockListCredentials) Exec(ctx context.Context, ids []uuid.UUID) ([]*entities.Credential, error)

Exec provides a mock function with given fields: ctx, ids

type MockListCredentials_Exec_Call

type MockListCredentials_Exec_Call struct {
	*mock.Call
}

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

func (*MockListCredentials_Exec_Call) Return

func (*MockListCredentials_Exec_Call) Run

func (*MockListCredentials_Exec_Call) RunAndReturn

type MockListCredentials_Expecter

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

func (*MockListCredentials_Expecter) Exec

func (_e *MockListCredentials_Expecter) Exec(ctx interface{}, ids interface{}) *MockListCredentials_Exec_Call

Exec is a helper method to define mock.On call

  • ctx context.Context
  • ids []uuid.UUID

type MockSearchCredentials

type MockSearchCredentials struct {
	mock.Mock
}

MockSearchCredentials is an autogenerated mock type for the SearchCredentials type

func NewMockSearchCredentials

func NewMockSearchCredentials(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockSearchCredentials

NewMockSearchCredentials creates a new instance of MockSearchCredentials. 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 (*MockSearchCredentials) EXPECT

func (*MockSearchCredentials) Exec

Exec provides a mock function with given fields: ctx, request

type MockSearchCredentials_Exec_Call

type MockSearchCredentials_Exec_Call struct {
	*mock.Call
}

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

func (*MockSearchCredentials_Exec_Call) Return

func (*MockSearchCredentials_Exec_Call) Run

func (*MockSearchCredentials_Exec_Call) RunAndReturn

type MockSearchCredentials_Expecter

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

func (*MockSearchCredentials_Expecter) Exec

func (_e *MockSearchCredentials_Expecter) Exec(ctx interface{}, request interface{}) *MockSearchCredentials_Exec_Call

Exec is a helper method to define mock.On call

  • ctx context.Context
  • request *dao.SearchCredentialsRequest

type MockUpdateCredentials

type MockUpdateCredentials struct {
	mock.Mock
}

MockUpdateCredentials is an autogenerated mock type for the UpdateCredentials type

func NewMockUpdateCredentials

func NewMockUpdateCredentials(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockUpdateCredentials

NewMockUpdateCredentials creates a new instance of MockUpdateCredentials. 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 (*MockUpdateCredentials) EXPECT

func (*MockUpdateCredentials) Exec

Exec provides a mock function with given fields: ctx, id, now, data

type MockUpdateCredentials_Exec_Call

type MockUpdateCredentials_Exec_Call struct {
	*mock.Call
}

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

func (*MockUpdateCredentials_Exec_Call) Return

func (*MockUpdateCredentials_Exec_Call) Run

type MockUpdateCredentials_Expecter

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

func (*MockUpdateCredentials_Expecter) Exec

func (_e *MockUpdateCredentials_Expecter) Exec(ctx interface{}, id interface{}, now interface{}, data interface{}) *MockUpdateCredentials_Exec_Call

Exec is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID
  • now time.Time
  • data *dao.UpdateCredentialsRequest

Jump to

Keyboard shortcuts

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