audit

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	mock.Mock
}

Manager is an autogenerated mock type for the Manager type

func NewManager

func NewManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *Manager

NewManager creates a new instance of Manager. 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 (*Manager) Add

func (_m *Manager) Add(ctx context.Context, record audit.Record) error

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

func (*Manager) AddMultiple

func (_m *Manager) AddMultiple(ctx context.Context, records []audit.Record) error

AddMultiple provides a mock function with given fields: ctx, records

func (*Manager) EXPECT

func (_m *Manager) EXPECT() *Manager_Expecter

func (*Manager) Init

func (_m *Manager) Init() error

Init provides a mock function with given fields:

func (*Manager) MustInit

func (_m *Manager) MustInit() audit.Manager

MustInit provides a mock function with given fields:

type Manager_AddMultiple_Call

type Manager_AddMultiple_Call struct {
	*mock.Call
}

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

func (*Manager_AddMultiple_Call) Return

func (*Manager_AddMultiple_Call) Run

func (_c *Manager_AddMultiple_Call) Run(run func(ctx context.Context, records []audit.Record)) *Manager_AddMultiple_Call

func (*Manager_AddMultiple_Call) RunAndReturn

type Manager_Add_Call

type Manager_Add_Call struct {
	*mock.Call
}

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

func (*Manager_Add_Call) Return

func (_c *Manager_Add_Call) Return(_a0 error) *Manager_Add_Call

func (*Manager_Add_Call) Run

func (_c *Manager_Add_Call) Run(run func(ctx context.Context, record audit.Record)) *Manager_Add_Call

func (*Manager_Add_Call) RunAndReturn

func (_c *Manager_Add_Call) RunAndReturn(run func(context.Context, audit.Record) error) *Manager_Add_Call

type Manager_Expecter

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

func (*Manager_Expecter) Add

func (_e *Manager_Expecter) Add(ctx interface{}, record interface{}) *Manager_Add_Call

Add is a helper method to define mock.On call

  • ctx context.Context
  • record audit.Record

func (*Manager_Expecter) AddMultiple

func (_e *Manager_Expecter) AddMultiple(ctx interface{}, records interface{}) *Manager_AddMultiple_Call

AddMultiple is a helper method to define mock.On call

  • ctx context.Context
  • records []audit.Record

func (*Manager_Expecter) Init

func (_e *Manager_Expecter) Init() *Manager_Init_Call

Init is a helper method to define mock.On call

func (*Manager_Expecter) MustInit

func (_e *Manager_Expecter) MustInit() *Manager_MustInit_Call

MustInit is a helper method to define mock.On call

type Manager_Init_Call

type Manager_Init_Call struct {
	*mock.Call
}

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

func (*Manager_Init_Call) Return

func (_c *Manager_Init_Call) Return(_a0 error) *Manager_Init_Call

func (*Manager_Init_Call) Run

func (_c *Manager_Init_Call) Run(run func()) *Manager_Init_Call

func (*Manager_Init_Call) RunAndReturn

func (_c *Manager_Init_Call) RunAndReturn(run func() error) *Manager_Init_Call

type Manager_MustInit_Call

type Manager_MustInit_Call struct {
	*mock.Call
}

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

func (*Manager_MustInit_Call) Return

func (*Manager_MustInit_Call) Run

func (_c *Manager_MustInit_Call) Run(run func()) *Manager_MustInit_Call

func (*Manager_MustInit_Call) RunAndReturn

func (_c *Manager_MustInit_Call) RunAndReturn(run func() audit.Manager) *Manager_MustInit_Call

Jump to

Keyboard shortcuts

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