mocks

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2026 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAuthAuditUseCase

type MockAuthAuditUseCase struct {
	mock.Mock
}

MockAuthAuditUseCase is an autogenerated mock type for the AuthAuditUseCase type

func NewMockAuthAuditUseCase

func NewMockAuthAuditUseCase(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockAuthAuditUseCase

NewMockAuthAuditUseCase creates a new instance of MockAuthAuditUseCase. 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 (*MockAuthAuditUseCase) Audit

func (_mock *MockAuthAuditUseCase) Audit(ctx context.Context, data *domain.AuthAudit) error

Audit provides a mock function for the type MockAuthAuditUseCase

func (*MockAuthAuditUseCase) EXPECT

type MockAuthAuditUseCase_Audit_Call

type MockAuthAuditUseCase_Audit_Call struct {
	*mock.Call
}

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

func (*MockAuthAuditUseCase_Audit_Call) Return

func (*MockAuthAuditUseCase_Audit_Call) Run

func (*MockAuthAuditUseCase_Audit_Call) RunAndReturn

type MockAuthAuditUseCase_Expecter

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

func (*MockAuthAuditUseCase_Expecter) Audit

func (_e *MockAuthAuditUseCase_Expecter) Audit(ctx interface{}, data interface{}) *MockAuthAuditUseCase_Audit_Call

Audit is a helper method to define mock.On call

  • ctx context.Context
  • data *domain.AuthAudit

type MockAuthListByPeriodUseCase

type MockAuthListByPeriodUseCase struct {
	mock.Mock
}

MockAuthListByPeriodUseCase is an autogenerated mock type for the AuthListByPeriodUseCase type

func NewMockAuthListByPeriodUseCase

func NewMockAuthListByPeriodUseCase(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockAuthListByPeriodUseCase

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

func (*MockAuthListByPeriodUseCase) List

func (_mock *MockAuthListByPeriodUseCase) List(ctx context.Context, from time.Time, till time.Time, limit int, offset int) ([]*domain.AuthAudit, error)

List provides a mock function for the type MockAuthListByPeriodUseCase

type MockAuthListByPeriodUseCase_Expecter

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

func (*MockAuthListByPeriodUseCase_Expecter) List

func (_e *MockAuthListByPeriodUseCase_Expecter) List(ctx interface{}, from interface{}, till interface{}, limit interface{}, offset interface{}) *MockAuthListByPeriodUseCase_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • from time.Time
  • till time.Time
  • limit int
  • offset int

type MockAuthListByPeriodUseCase_List_Call

type MockAuthListByPeriodUseCase_List_Call struct {
	*mock.Call
}

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

func (*MockAuthListByPeriodUseCase_List_Call) Return

func (*MockAuthListByPeriodUseCase_List_Call) Run

func (*MockAuthListByPeriodUseCase_List_Call) RunAndReturn

func (_c *MockAuthListByPeriodUseCase_List_Call) RunAndReturn(run func(ctx context.Context, from time.Time, till time.Time, limit int, offset int) ([]*domain.AuthAudit, error)) *MockAuthListByPeriodUseCase_List_Call

type MockAuthListByUsernameUseCase

type MockAuthListByUsernameUseCase struct {
	mock.Mock
}

MockAuthListByUsernameUseCase is an autogenerated mock type for the AuthListByUsernameUseCase type

func NewMockAuthListByUsernameUseCase

func NewMockAuthListByUsernameUseCase(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockAuthListByUsernameUseCase

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

func (*MockAuthListByUsernameUseCase) List

func (_mock *MockAuthListByUsernameUseCase) List(ctx context.Context, username string, limit int, offset int) ([]*domain.AuthAudit, error)

List provides a mock function for the type MockAuthListByUsernameUseCase

type MockAuthListByUsernameUseCase_Expecter

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

func (*MockAuthListByUsernameUseCase_Expecter) List

func (_e *MockAuthListByUsernameUseCase_Expecter) List(ctx interface{}, username interface{}, limit interface{}, offset interface{}) *MockAuthListByUsernameUseCase_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • username string
  • limit int
  • offset int

type MockAuthListByUsernameUseCase_List_Call

type MockAuthListByUsernameUseCase_List_Call struct {
	*mock.Call
}

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

func (*MockAuthListByUsernameUseCase_List_Call) Return

func (*MockAuthListByUsernameUseCase_List_Call) Run

func (*MockAuthListByUsernameUseCase_List_Call) RunAndReturn

type MockDataAuditUseCase

type MockDataAuditUseCase struct {
	mock.Mock
}

MockDataAuditUseCase is an autogenerated mock type for the DataAuditUseCase type

func NewMockDataAuditUseCase

func NewMockDataAuditUseCase(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockDataAuditUseCase

NewMockDataAuditUseCase creates a new instance of MockDataAuditUseCase. 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 (*MockDataAuditUseCase) Audit

func (_mock *MockDataAuditUseCase) Audit(ctx context.Context, data *domain.DataAudit) error

Audit provides a mock function for the type MockDataAuditUseCase

func (*MockDataAuditUseCase) EXPECT

type MockDataAuditUseCase_Audit_Call

type MockDataAuditUseCase_Audit_Call struct {
	*mock.Call
}

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

func (*MockDataAuditUseCase_Audit_Call) Return

func (*MockDataAuditUseCase_Audit_Call) Run

func (*MockDataAuditUseCase_Audit_Call) RunAndReturn

type MockDataAuditUseCase_Expecter

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

func (*MockDataAuditUseCase_Expecter) Audit

func (_e *MockDataAuditUseCase_Expecter) Audit(ctx interface{}, data interface{}) *MockDataAuditUseCase_Audit_Call

Audit is a helper method to define mock.On call

  • ctx context.Context
  • data *domain.DataAudit

type MockDataListByInstanceUseCase

type MockDataListByInstanceUseCase struct {
	mock.Mock
}

MockDataListByInstanceUseCase is an autogenerated mock type for the DataListByInstanceUseCase type

func NewMockDataListByInstanceUseCase

func NewMockDataListByInstanceUseCase(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockDataListByInstanceUseCase

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

func (*MockDataListByInstanceUseCase) List

func (_mock *MockDataListByInstanceUseCase) List(ctx context.Context, typeName string, instanceID string, limit int, offset int) ([]*domain.DataAudit, error)

List provides a mock function for the type MockDataListByInstanceUseCase

type MockDataListByInstanceUseCase_Expecter

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

func (*MockDataListByInstanceUseCase_Expecter) List

func (_e *MockDataListByInstanceUseCase_Expecter) List(ctx interface{}, typeName interface{}, instanceID interface{}, limit interface{}, offset interface{}) *MockDataListByInstanceUseCase_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • typeName string
  • instanceID string
  • limit int
  • offset int

type MockDataListByInstanceUseCase_List_Call

type MockDataListByInstanceUseCase_List_Call struct {
	*mock.Call
}

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

func (*MockDataListByInstanceUseCase_List_Call) Return

func (*MockDataListByInstanceUseCase_List_Call) Run

func (_c *MockDataListByInstanceUseCase_List_Call) Run(run func(ctx context.Context, typeName string, instanceID string, limit int, offset int)) *MockDataListByInstanceUseCase_List_Call

func (*MockDataListByInstanceUseCase_List_Call) RunAndReturn

func (_c *MockDataListByInstanceUseCase_List_Call) RunAndReturn(run func(ctx context.Context, typeName string, instanceID string, limit int, offset int) ([]*domain.DataAudit, error)) *MockDataListByInstanceUseCase_List_Call

type MockDataListByPeriodUseCase

type MockDataListByPeriodUseCase struct {
	mock.Mock
}

MockDataListByPeriodUseCase is an autogenerated mock type for the DataListByPeriodUseCase type

func NewMockDataListByPeriodUseCase

func NewMockDataListByPeriodUseCase(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockDataListByPeriodUseCase

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

func (*MockDataListByPeriodUseCase) List

func (_mock *MockDataListByPeriodUseCase) List(ctx context.Context, from time.Time, till time.Time, limit int, offset int) ([]*domain.DataAudit, error)

List provides a mock function for the type MockDataListByPeriodUseCase

type MockDataListByPeriodUseCase_Expecter

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

func (*MockDataListByPeriodUseCase_Expecter) List

func (_e *MockDataListByPeriodUseCase_Expecter) List(ctx interface{}, from interface{}, till interface{}, limit interface{}, offset interface{}) *MockDataListByPeriodUseCase_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • from time.Time
  • till time.Time
  • limit int
  • offset int

type MockDataListByPeriodUseCase_List_Call

type MockDataListByPeriodUseCase_List_Call struct {
	*mock.Call
}

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

func (*MockDataListByPeriodUseCase_List_Call) Return

func (*MockDataListByPeriodUseCase_List_Call) Run

func (*MockDataListByPeriodUseCase_List_Call) RunAndReturn

func (_c *MockDataListByPeriodUseCase_List_Call) RunAndReturn(run func(ctx context.Context, from time.Time, till time.Time, limit int, offset int) ([]*domain.DataAudit, error)) *MockDataListByPeriodUseCase_List_Call

type MockTailCutUseCase

type MockTailCutUseCase[ID comparable] struct {
	mock.Mock
}

MockTailCutUseCase is an autogenerated mock type for the TailCutUseCase type

func NewMockTailCutUseCase

func NewMockTailCutUseCase[ID comparable](t interface {
	mock.TestingT
	Cleanup(func())
}) *MockTailCutUseCase[ID]

NewMockTailCutUseCase creates a new instance of MockTailCutUseCase. 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 (*MockTailCutUseCase[ID]) Cut

func (_mock *MockTailCutUseCase[ID]) Cut(ctx context.Context, id ID) error

Cut provides a mock function for the type MockTailCutUseCase

func (*MockTailCutUseCase[ID]) EXPECT

func (_m *MockTailCutUseCase[ID]) EXPECT() *MockTailCutUseCase_Expecter[ID]

type MockTailCutUseCase_Cut_Call

type MockTailCutUseCase_Cut_Call[ID comparable] struct {
	*mock.Call
}

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

func (*MockTailCutUseCase_Cut_Call[ID]) Return

func (*MockTailCutUseCase_Cut_Call[ID]) Run

func (_c *MockTailCutUseCase_Cut_Call[ID]) Run(run func(ctx context.Context, id ID)) *MockTailCutUseCase_Cut_Call[ID]

func (*MockTailCutUseCase_Cut_Call[ID]) RunAndReturn

func (_c *MockTailCutUseCase_Cut_Call[ID]) RunAndReturn(run func(ctx context.Context, id ID) error) *MockTailCutUseCase_Cut_Call[ID]

type MockTailCutUseCase_Expecter

type MockTailCutUseCase_Expecter[ID comparable] struct {
	// contains filtered or unexported fields
}

func (*MockTailCutUseCase_Expecter[ID]) Cut

func (_e *MockTailCutUseCase_Expecter[ID]) Cut(ctx interface{}, id interface{}) *MockTailCutUseCase_Cut_Call[ID]

Cut is a helper method to define mock.On call

  • ctx context.Context
  • id ID

type MockTailGetUseCase

type MockTailGetUseCase[ID comparable] struct {
	mock.Mock
}

MockTailGetUseCase is an autogenerated mock type for the TailGetUseCase type

func NewMockTailGetUseCase

func NewMockTailGetUseCase[ID comparable](t interface {
	mock.TestingT
	Cleanup(func())
}) *MockTailGetUseCase[ID]

NewMockTailGetUseCase creates a new instance of MockTailGetUseCase. 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 (*MockTailGetUseCase[ID]) EXPECT

func (_m *MockTailGetUseCase[ID]) EXPECT() *MockTailGetUseCase_Expecter[ID]

func (*MockTailGetUseCase[ID]) GetTail

func (_mock *MockTailGetUseCase[ID]) GetTail(ctx context.Context, tail time.Time) ([]ID, error)

GetTail provides a mock function for the type MockTailGetUseCase

type MockTailGetUseCase_Expecter

type MockTailGetUseCase_Expecter[ID comparable] struct {
	// contains filtered or unexported fields
}

func (*MockTailGetUseCase_Expecter[ID]) GetTail

func (_e *MockTailGetUseCase_Expecter[ID]) GetTail(ctx interface{}, tail interface{}) *MockTailGetUseCase_GetTail_Call[ID]

GetTail is a helper method to define mock.On call

  • ctx context.Context
  • tail time.Time

type MockTailGetUseCase_GetTail_Call

type MockTailGetUseCase_GetTail_Call[ID comparable] struct {
	*mock.Call
}

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

func (*MockTailGetUseCase_GetTail_Call[ID]) Return

func (_c *MockTailGetUseCase_GetTail_Call[ID]) Return(vs []ID, err error) *MockTailGetUseCase_GetTail_Call[ID]

func (*MockTailGetUseCase_GetTail_Call[ID]) Run

func (*MockTailGetUseCase_GetTail_Call[ID]) RunAndReturn

func (_c *MockTailGetUseCase_GetTail_Call[ID]) RunAndReturn(run func(ctx context.Context, tail time.Time) ([]ID, error)) *MockTailGetUseCase_GetTail_Call[ID]

Jump to

Keyboard shortcuts

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