mocks

package
v0.0.13 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 MockAuthAuditRepository

type MockAuthAuditRepository struct {
	mock.Mock
}

MockAuthAuditRepository is an autogenerated mock type for the AuthAuditRepository type

func NewMockAuthAuditRepository

func NewMockAuthAuditRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockAuthAuditRepository

NewMockAuthAuditRepository creates a new instance of MockAuthAuditRepository. 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 (*MockAuthAuditRepository) Change

func (_mock *MockAuthAuditRepository) Change(ctx context.Context, entity *domain.AuthAudit) (*domain.AuthAudit, error)

Change provides a mock function for the type MockAuthAuditRepository

func (*MockAuthAuditRepository) Create

func (_mock *MockAuthAuditRepository) Create(ctx context.Context, entity *domain.AuthAudit) (*domain.AuthAudit, error)

Create provides a mock function for the type MockAuthAuditRepository

func (*MockAuthAuditRepository) Delete

func (_mock *MockAuthAuditRepository) Delete(ctx context.Context, id string) error

Delete provides a mock function for the type MockAuthAuditRepository

func (*MockAuthAuditRepository) EXPECT

func (*MockAuthAuditRepository) Find

Find provides a mock function for the type MockAuthAuditRepository

func (*MockAuthAuditRepository) List

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

List provides a mock function for the type MockAuthAuditRepository

func (*MockAuthAuditRepository) ListByPeriod

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

ListByPeriod provides a mock function for the type MockAuthAuditRepository

func (*MockAuthAuditRepository) ListByUsername

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

ListByUsername provides a mock function for the type MockAuthAuditRepository

type MockAuthAuditRepository_Change_Call

type MockAuthAuditRepository_Change_Call struct {
	*mock.Call
}

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

func (*MockAuthAuditRepository_Change_Call) Return

func (*MockAuthAuditRepository_Change_Call) Run

func (*MockAuthAuditRepository_Change_Call) RunAndReturn

type MockAuthAuditRepository_Create_Call

type MockAuthAuditRepository_Create_Call struct {
	*mock.Call
}

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

func (*MockAuthAuditRepository_Create_Call) Return

func (*MockAuthAuditRepository_Create_Call) Run

func (*MockAuthAuditRepository_Create_Call) RunAndReturn

type MockAuthAuditRepository_Delete_Call

type MockAuthAuditRepository_Delete_Call struct {
	*mock.Call
}

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

func (*MockAuthAuditRepository_Delete_Call) Return

func (*MockAuthAuditRepository_Delete_Call) Run

func (*MockAuthAuditRepository_Delete_Call) RunAndReturn

type MockAuthAuditRepository_Expecter

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

func (*MockAuthAuditRepository_Expecter) Change

func (_e *MockAuthAuditRepository_Expecter) Change(ctx interface{}, entity interface{}) *MockAuthAuditRepository_Change_Call

Change is a helper method to define mock.On call

  • ctx context.Context
  • entity *domain.AuthAudit

func (*MockAuthAuditRepository_Expecter) Create

func (_e *MockAuthAuditRepository_Expecter) Create(ctx interface{}, entity interface{}) *MockAuthAuditRepository_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • entity *domain.AuthAudit

func (*MockAuthAuditRepository_Expecter) Delete

func (_e *MockAuthAuditRepository_Expecter) Delete(ctx interface{}, id interface{}) *MockAuthAuditRepository_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*MockAuthAuditRepository_Expecter) Find

func (_e *MockAuthAuditRepository_Expecter) Find(ctx interface{}, id interface{}) *MockAuthAuditRepository_Find_Call

Find is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*MockAuthAuditRepository_Expecter) List

func (_e *MockAuthAuditRepository_Expecter) List(ctx interface{}, limit interface{}, offset interface{}) *MockAuthAuditRepository_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • limit int
  • offset int

func (*MockAuthAuditRepository_Expecter) ListByPeriod

func (_e *MockAuthAuditRepository_Expecter) ListByPeriod(ctx interface{}, from interface{}, till interface{}, limit interface{}, offset interface{}) *MockAuthAuditRepository_ListByPeriod_Call

ListByPeriod is a helper method to define mock.On call

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

func (*MockAuthAuditRepository_Expecter) ListByUsername

func (_e *MockAuthAuditRepository_Expecter) ListByUsername(ctx interface{}, username interface{}, offset interface{}, limit interface{}) *MockAuthAuditRepository_ListByUsername_Call

ListByUsername is a helper method to define mock.On call

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

type MockAuthAuditRepository_Find_Call

type MockAuthAuditRepository_Find_Call struct {
	*mock.Call
}

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

func (*MockAuthAuditRepository_Find_Call) Return

func (*MockAuthAuditRepository_Find_Call) Run

func (*MockAuthAuditRepository_Find_Call) RunAndReturn

type MockAuthAuditRepository_ListByPeriod_Call

type MockAuthAuditRepository_ListByPeriod_Call struct {
	*mock.Call
}

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

func (*MockAuthAuditRepository_ListByPeriod_Call) Return

func (*MockAuthAuditRepository_ListByPeriod_Call) Run

func (*MockAuthAuditRepository_ListByPeriod_Call) RunAndReturn

type MockAuthAuditRepository_ListByUsername_Call

type MockAuthAuditRepository_ListByUsername_Call struct {
	*mock.Call
}

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

func (*MockAuthAuditRepository_ListByUsername_Call) Return

func (*MockAuthAuditRepository_ListByUsername_Call) Run

func (*MockAuthAuditRepository_ListByUsername_Call) RunAndReturn

type MockAuthAuditRepository_List_Call

type MockAuthAuditRepository_List_Call struct {
	*mock.Call
}

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

func (*MockAuthAuditRepository_List_Call) Return

func (*MockAuthAuditRepository_List_Call) Run

func (*MockAuthAuditRepository_List_Call) RunAndReturn

func (_c *MockAuthAuditRepository_List_Call) RunAndReturn(run func(ctx context.Context, limit int, offset int) ([]*domain.AuthAudit, error)) *MockAuthAuditRepository_List_Call

type MockDataAuditRepository

type MockDataAuditRepository struct {
	mock.Mock
}

MockDataAuditRepository is an autogenerated mock type for the DataAuditRepository type

func NewMockDataAuditRepository

func NewMockDataAuditRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockDataAuditRepository

NewMockDataAuditRepository creates a new instance of MockDataAuditRepository. 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 (*MockDataAuditRepository) Change

func (_mock *MockDataAuditRepository) Change(ctx context.Context, entity *domain.DataAudit) (*domain.DataAudit, error)

Change provides a mock function for the type MockDataAuditRepository

func (*MockDataAuditRepository) Create

func (_mock *MockDataAuditRepository) Create(ctx context.Context, entity *domain.DataAudit) (*domain.DataAudit, error)

Create provides a mock function for the type MockDataAuditRepository

func (*MockDataAuditRepository) Delete

func (_mock *MockDataAuditRepository) Delete(ctx context.Context, id string) error

Delete provides a mock function for the type MockDataAuditRepository

func (*MockDataAuditRepository) EXPECT

func (*MockDataAuditRepository) Find

Find provides a mock function for the type MockDataAuditRepository

func (*MockDataAuditRepository) List

func (_mock *MockDataAuditRepository) List(ctx context.Context, limit int, offset int) ([]*domain.DataAudit, error)

List provides a mock function for the type MockDataAuditRepository

func (*MockDataAuditRepository) ListByInstance

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

ListByInstance provides a mock function for the type MockDataAuditRepository

func (*MockDataAuditRepository) ListByPeriod

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

ListByPeriod provides a mock function for the type MockDataAuditRepository

type MockDataAuditRepository_Change_Call

type MockDataAuditRepository_Change_Call struct {
	*mock.Call
}

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

func (*MockDataAuditRepository_Change_Call) Return

func (*MockDataAuditRepository_Change_Call) Run

func (*MockDataAuditRepository_Change_Call) RunAndReturn

type MockDataAuditRepository_Create_Call

type MockDataAuditRepository_Create_Call struct {
	*mock.Call
}

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

func (*MockDataAuditRepository_Create_Call) Return

func (*MockDataAuditRepository_Create_Call) Run

func (*MockDataAuditRepository_Create_Call) RunAndReturn

type MockDataAuditRepository_Delete_Call

type MockDataAuditRepository_Delete_Call struct {
	*mock.Call
}

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

func (*MockDataAuditRepository_Delete_Call) Return

func (*MockDataAuditRepository_Delete_Call) Run

func (*MockDataAuditRepository_Delete_Call) RunAndReturn

type MockDataAuditRepository_Expecter

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

func (*MockDataAuditRepository_Expecter) Change

func (_e *MockDataAuditRepository_Expecter) Change(ctx interface{}, entity interface{}) *MockDataAuditRepository_Change_Call

Change is a helper method to define mock.On call

  • ctx context.Context
  • entity *domain.DataAudit

func (*MockDataAuditRepository_Expecter) Create

func (_e *MockDataAuditRepository_Expecter) Create(ctx interface{}, entity interface{}) *MockDataAuditRepository_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • entity *domain.DataAudit

func (*MockDataAuditRepository_Expecter) Delete

func (_e *MockDataAuditRepository_Expecter) Delete(ctx interface{}, id interface{}) *MockDataAuditRepository_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*MockDataAuditRepository_Expecter) Find

func (_e *MockDataAuditRepository_Expecter) Find(ctx interface{}, id interface{}) *MockDataAuditRepository_Find_Call

Find is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*MockDataAuditRepository_Expecter) List

func (_e *MockDataAuditRepository_Expecter) List(ctx interface{}, limit interface{}, offset interface{}) *MockDataAuditRepository_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • limit int
  • offset int

func (*MockDataAuditRepository_Expecter) ListByInstance

func (_e *MockDataAuditRepository_Expecter) ListByInstance(ctx interface{}, typeName interface{}, instanceID interface{}, limit interface{}, offset interface{}) *MockDataAuditRepository_ListByInstance_Call

ListByInstance is a helper method to define mock.On call

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

func (*MockDataAuditRepository_Expecter) ListByPeriod

func (_e *MockDataAuditRepository_Expecter) ListByPeriod(ctx interface{}, from interface{}, till interface{}, limit interface{}, offset interface{}) *MockDataAuditRepository_ListByPeriod_Call

ListByPeriod is a helper method to define mock.On call

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

type MockDataAuditRepository_Find_Call

type MockDataAuditRepository_Find_Call struct {
	*mock.Call
}

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

func (*MockDataAuditRepository_Find_Call) Return

func (*MockDataAuditRepository_Find_Call) Run

func (*MockDataAuditRepository_Find_Call) RunAndReturn

type MockDataAuditRepository_ListByInstance_Call

type MockDataAuditRepository_ListByInstance_Call struct {
	*mock.Call
}

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

func (*MockDataAuditRepository_ListByInstance_Call) Return

func (*MockDataAuditRepository_ListByInstance_Call) Run

func (*MockDataAuditRepository_ListByInstance_Call) RunAndReturn

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

type MockDataAuditRepository_ListByPeriod_Call

type MockDataAuditRepository_ListByPeriod_Call struct {
	*mock.Call
}

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

func (*MockDataAuditRepository_ListByPeriod_Call) Return

func (*MockDataAuditRepository_ListByPeriod_Call) Run

func (*MockDataAuditRepository_ListByPeriod_Call) RunAndReturn

type MockDataAuditRepository_List_Call

type MockDataAuditRepository_List_Call struct {
	*mock.Call
}

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

func (*MockDataAuditRepository_List_Call) Return

func (*MockDataAuditRepository_List_Call) Run

func (*MockDataAuditRepository_List_Call) RunAndReturn

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

type MockTailRepository

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

MockTailRepository is an autogenerated mock type for the TailRepository type

func NewMockTailRepository

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

NewMockTailRepository creates a new instance of MockTailRepository. 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 (*MockTailRepository[ID]) Delete

func (_mock *MockTailRepository[ID]) Delete(ctx context.Context, id ID) error

Delete provides a mock function for the type MockTailRepository

func (*MockTailRepository[ID]) EXPECT

func (_m *MockTailRepository[ID]) EXPECT() *MockTailRepository_Expecter[ID]

func (*MockTailRepository[ID]) GetTail

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

GetTail provides a mock function for the type MockTailRepository

type MockTailRepository_Delete_Call

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

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

func (*MockTailRepository_Delete_Call[ID]) Return

func (*MockTailRepository_Delete_Call[ID]) Run

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

func (*MockTailRepository_Delete_Call[ID]) RunAndReturn

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

type MockTailRepository_Expecter

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

func (*MockTailRepository_Expecter[ID]) Delete

func (_e *MockTailRepository_Expecter[ID]) Delete(ctx interface{}, id interface{}) *MockTailRepository_Delete_Call[ID]

Delete is a helper method to define mock.On call

  • ctx context.Context
  • id ID

func (*MockTailRepository_Expecter[ID]) GetTail

func (_e *MockTailRepository_Expecter[ID]) GetTail(ctx interface{}, tailDate interface{}) *MockTailRepository_GetTail_Call[ID]

GetTail is a helper method to define mock.On call

  • ctx context.Context
  • tailDate time.Time

type MockTailRepository_GetTail_Call

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

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

func (*MockTailRepository_GetTail_Call[ID]) Return

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

func (*MockTailRepository_GetTail_Call[ID]) Run

func (_c *MockTailRepository_GetTail_Call[ID]) Run(run func(ctx context.Context, tailDate time.Time)) *MockTailRepository_GetTail_Call[ID]

func (*MockTailRepository_GetTail_Call[ID]) RunAndReturn

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

Jump to

Keyboard shortcuts

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