apptest

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditEventRepository

type AuditEventRepository struct {
	mock.Mock
}

AuditEventRepository is an autogenerated mock type for the AuditEventRepository type

func NewAuditEventRepository

func NewAuditEventRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *AuditEventRepository

NewAuditEventRepository creates a new instance of AuditEventRepository. 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 (*AuditEventRepository) Create

Create provides a mock function with given fields: _a0, _a1

func (*AuditEventRepository) EXPECT

func (*AuditEventRepository) Get

Get provides a mock function with given fields: ctx, opts

func (*AuditEventRepository) List

List provides a mock function with given fields: ctx, opts

func (*AuditEventRepository) Query

Query provides a mock function with given fields: ctx, f

type AuditEventRepository_Create_Call

type AuditEventRepository_Create_Call struct {
	*mock.Call
}

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

func (*AuditEventRepository_Create_Call) Return

func (*AuditEventRepository_Create_Call) Run

func (*AuditEventRepository_Create_Call) RunAndReturn

type AuditEventRepository_Expecter

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

func (*AuditEventRepository_Expecter) Create

func (_e *AuditEventRepository_Expecter) Create(_a0 interface{}, _a1 interface{}) *AuditEventRepository_Create_Call

Create is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 domain.AuditEvent

func (*AuditEventRepository_Expecter) Get

func (_e *AuditEventRepository_Expecter) Get(ctx interface{}, opts ...interface{}) *AuditEventRepository_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • opts ...search.Option

func (*AuditEventRepository_Expecter) List

func (_e *AuditEventRepository_Expecter) List(ctx interface{}, opts ...interface{}) *AuditEventRepository_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • opts ...search.Option

func (*AuditEventRepository_Expecter) Query

func (_e *AuditEventRepository_Expecter) Query(ctx interface{}, f interface{}) *AuditEventRepository_Query_Call

Query is a helper method to define mock.On call

  • ctx context.Context
  • f app.AuditEventFilter

type AuditEventRepository_Get_Call

type AuditEventRepository_Get_Call struct {
	*mock.Call
}

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

func (*AuditEventRepository_Get_Call) Return

func (*AuditEventRepository_Get_Call) Run

func (*AuditEventRepository_Get_Call) RunAndReturn

type AuditEventRepository_List_Call

type AuditEventRepository_List_Call struct {
	*mock.Call
}

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

func (*AuditEventRepository_List_Call) Return

func (*AuditEventRepository_List_Call) Run

func (*AuditEventRepository_List_Call) RunAndReturn

type AuditEventRepository_Query_Call

type AuditEventRepository_Query_Call struct {
	*mock.Call
}

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

func (*AuditEventRepository_Query_Call) Return

func (*AuditEventRepository_Query_Call) Run

type AuditEventUsecase

type AuditEventUsecase struct {
	mock.Mock
}

AuditEventUsecase is an autogenerated mock type for the AuditEventUsecase type

func NewAuditEventUsecase

func NewAuditEventUsecase(t interface {
	mock.TestingT
	Cleanup(func())
}) *AuditEventUsecase

NewAuditEventUsecase creates a new instance of AuditEventUsecase. 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 (*AuditEventUsecase) Append

Append provides a mock function with given fields: ctx, event

func (*AuditEventUsecase) EXPECT

func (*AuditEventUsecase) Get

Get provides a mock function with given fields: ctx, opts

func (*AuditEventUsecase) List

List provides a mock function with given fields: ctx, opts

func (*AuditEventUsecase) Query

Query provides a mock function with given fields: ctx, f

func (*AuditEventUsecase) Subscribe

Subscribe provides a mock function with given fields: f

type AuditEventUsecase_Append_Call

type AuditEventUsecase_Append_Call struct {
	*mock.Call
}

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

func (*AuditEventUsecase_Append_Call) Return

func (*AuditEventUsecase_Append_Call) Run

func (*AuditEventUsecase_Append_Call) RunAndReturn

type AuditEventUsecase_Expecter

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

func (*AuditEventUsecase_Expecter) Append

func (_e *AuditEventUsecase_Expecter) Append(ctx interface{}, event interface{}) *AuditEventUsecase_Append_Call

Append is a helper method to define mock.On call

  • ctx context.Context
  • event domain.AuditEvent

func (*AuditEventUsecase_Expecter) Get

func (_e *AuditEventUsecase_Expecter) Get(ctx interface{}, opts ...interface{}) *AuditEventUsecase_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • opts ...search.Option

func (*AuditEventUsecase_Expecter) List

func (_e *AuditEventUsecase_Expecter) List(ctx interface{}, opts ...interface{}) *AuditEventUsecase_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • opts ...search.Option

func (*AuditEventUsecase_Expecter) Query

func (_e *AuditEventUsecase_Expecter) Query(ctx interface{}, f interface{}) *AuditEventUsecase_Query_Call

Query is a helper method to define mock.On call

  • ctx context.Context
  • f app.AuditEventFilter

func (*AuditEventUsecase_Expecter) Subscribe

func (_e *AuditEventUsecase_Expecter) Subscribe(f interface{}) *AuditEventUsecase_Subscribe_Call

Subscribe is a helper method to define mock.On call

  • f app.AuditEventFilter

type AuditEventUsecase_Get_Call

type AuditEventUsecase_Get_Call struct {
	*mock.Call
}

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

func (*AuditEventUsecase_Get_Call) Return

func (*AuditEventUsecase_Get_Call) Run

func (*AuditEventUsecase_Get_Call) RunAndReturn

type AuditEventUsecase_List_Call

type AuditEventUsecase_List_Call struct {
	*mock.Call
}

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

func (*AuditEventUsecase_List_Call) Return

func (*AuditEventUsecase_List_Call) Run

func (*AuditEventUsecase_List_Call) RunAndReturn

type AuditEventUsecase_Query_Call

type AuditEventUsecase_Query_Call struct {
	*mock.Call
}

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

func (*AuditEventUsecase_Query_Call) Return

func (*AuditEventUsecase_Query_Call) Run

type AuditEventUsecase_Subscribe_Call

type AuditEventUsecase_Subscribe_Call struct {
	*mock.Call
}

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

func (*AuditEventUsecase_Subscribe_Call) Return

func (*AuditEventUsecase_Subscribe_Call) Run

func (*AuditEventUsecase_Subscribe_Call) RunAndReturn

type Forwarder

type Forwarder struct {
	mock.Mock
}

Forwarder is an autogenerated mock type for the Forwarder type

func NewForwarder

func NewForwarder(t interface {
	mock.TestingT
	Cleanup(func())
}) *Forwarder

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

func (_m *Forwarder) EXPECT() *Forwarder_Expecter

func (*Forwarder) Forward

func (_m *Forwarder) Forward(ctx context.Context, event domain.AuditEvent) error

Forward provides a mock function with given fields: ctx, event

func (*Forwarder) Name

func (_m *Forwarder) Name() string

Name provides a mock function with no fields

type Forwarder_Expecter

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

func (*Forwarder_Expecter) Forward

func (_e *Forwarder_Expecter) Forward(ctx interface{}, event interface{}) *Forwarder_Forward_Call

Forward is a helper method to define mock.On call

  • ctx context.Context
  • event domain.AuditEvent

func (*Forwarder_Expecter) Name

Name is a helper method to define mock.On call

type Forwarder_Forward_Call

type Forwarder_Forward_Call struct {
	*mock.Call
}

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

func (*Forwarder_Forward_Call) Return

func (*Forwarder_Forward_Call) Run

func (*Forwarder_Forward_Call) RunAndReturn

type Forwarder_Name_Call

type Forwarder_Name_Call struct {
	*mock.Call
}

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

func (*Forwarder_Name_Call) Return

func (*Forwarder_Name_Call) Run

func (_c *Forwarder_Name_Call) Run(run func()) *Forwarder_Name_Call

func (*Forwarder_Name_Call) RunAndReturn

func (_c *Forwarder_Name_Call) RunAndReturn(run func() string) *Forwarder_Name_Call

type PartitionStore

type PartitionStore struct {
	mock.Mock
}

PartitionStore is an autogenerated mock type for the PartitionStore type

func NewPartitionStore

func NewPartitionStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *PartitionStore

NewPartitionStore creates a new instance of PartitionStore. 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 (*PartitionStore) DropPartition

func (_m *PartitionStore) DropPartition(ctx context.Context, name string) error

DropPartition provides a mock function with given fields: ctx, name

func (*PartitionStore) EXPECT

func (*PartitionStore) ListMonthlyPartitions

func (_m *PartitionStore) ListMonthlyPartitions(ctx context.Context) ([]string, error)

ListMonthlyPartitions provides a mock function with given fields: ctx

type PartitionStore_DropPartition_Call

type PartitionStore_DropPartition_Call struct {
	*mock.Call
}

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

func (*PartitionStore_DropPartition_Call) Return

func (*PartitionStore_DropPartition_Call) Run

func (*PartitionStore_DropPartition_Call) RunAndReturn

type PartitionStore_Expecter

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

func (*PartitionStore_Expecter) DropPartition

func (_e *PartitionStore_Expecter) DropPartition(ctx interface{}, name interface{}) *PartitionStore_DropPartition_Call

DropPartition is a helper method to define mock.On call

  • ctx context.Context
  • name string

func (*PartitionStore_Expecter) ListMonthlyPartitions

func (_e *PartitionStore_Expecter) ListMonthlyPartitions(ctx interface{}) *PartitionStore_ListMonthlyPartitions_Call

ListMonthlyPartitions is a helper method to define mock.On call

  • ctx context.Context

type PartitionStore_ListMonthlyPartitions_Call

type PartitionStore_ListMonthlyPartitions_Call struct {
	*mock.Call
}

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

func (*PartitionStore_ListMonthlyPartitions_Call) Return

func (*PartitionStore_ListMonthlyPartitions_Call) Run

func (*PartitionStore_ListMonthlyPartitions_Call) RunAndReturn

type RetentionSweeper

type RetentionSweeper struct {
	mock.Mock
}

RetentionSweeper is an autogenerated mock type for the RetentionSweeper type

func NewRetentionSweeper

func NewRetentionSweeper(t interface {
	mock.TestingT
	Cleanup(func())
}) *RetentionSweeper

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

func (*RetentionSweeper) Sweep

func (_m *RetentionSweeper) Sweep(ctx context.Context, before time.Time) (int, error)

Sweep provides a mock function with given fields: ctx, before

type RetentionSweeper_Expecter

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

func (*RetentionSweeper_Expecter) Sweep

func (_e *RetentionSweeper_Expecter) Sweep(ctx interface{}, before interface{}) *RetentionSweeper_Sweep_Call

Sweep is a helper method to define mock.On call

  • ctx context.Context
  • before time.Time

type RetentionSweeper_Sweep_Call

type RetentionSweeper_Sweep_Call struct {
	*mock.Call
}

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

func (*RetentionSweeper_Sweep_Call) Return

func (*RetentionSweeper_Sweep_Call) Run

func (*RetentionSweeper_Sweep_Call) RunAndReturn

Jump to

Keyboard shortcuts

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