mocks

package
v0.75.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2025 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 AuditRecordService

type AuditRecordService struct {
	mock.Mock
}

AuditRecordService is an autogenerated mock type for the AuditRecordService type

func NewAuditRecordService

func NewAuditRecordService(t interface {
	mock.TestingT
	Cleanup(func())
}) *AuditRecordService

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

Create provides a mock function with given fields: ctx, record

func (*AuditRecordService) EXPECT

func (*AuditRecordService) Export added in v0.75.0

func (_m *AuditRecordService) Export(ctx context.Context, query *rql.Query) (io.Reader, string, error)

Export provides a mock function with given fields: ctx, query

func (*AuditRecordService) List added in v0.75.0

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

type AuditRecordService_Create_Call

type AuditRecordService_Create_Call struct {
	*mock.Call
}

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

func (*AuditRecordService_Create_Call) Return

func (*AuditRecordService_Create_Call) Run

type AuditRecordService_Expecter

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

func (*AuditRecordService_Expecter) Create

func (_e *AuditRecordService_Expecter) Create(ctx interface{}, record interface{}) *AuditRecordService_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • record auditrecord.AuditRecord

func (*AuditRecordService_Expecter) Export added in v0.75.0

func (_e *AuditRecordService_Expecter) Export(ctx interface{}, query interface{}) *AuditRecordService_Export_Call

Export is a helper method to define mock.On call

  • ctx context.Context
  • query *rql.Query

func (*AuditRecordService_Expecter) List added in v0.75.0

func (_e *AuditRecordService_Expecter) List(ctx interface{}, query interface{}) *AuditRecordService_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • query *rql.Query

type AuditRecordService_Export_Call added in v0.75.0

type AuditRecordService_Export_Call struct {
	*mock.Call
}

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

func (*AuditRecordService_Export_Call) Return added in v0.75.0

func (*AuditRecordService_Export_Call) Run added in v0.75.0

func (*AuditRecordService_Export_Call) RunAndReturn added in v0.75.0

type AuditRecordService_List_Call added in v0.75.0

type AuditRecordService_List_Call struct {
	*mock.Call
}

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

func (*AuditRecordService_List_Call) Return added in v0.75.0

func (*AuditRecordService_List_Call) Run added in v0.75.0

func (*AuditRecordService_List_Call) RunAndReturn added in v0.75.0

Jump to

Keyboard shortcuts

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