daomocks

package
v0.0.0-...-18a3956 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBatchDeleteBeats

type MockBatchDeleteBeats struct {
	mock.Mock
}

MockBatchDeleteBeats is an autogenerated mock type for the BatchDeleteBeats type

func NewMockBatchDeleteBeats

func NewMockBatchDeleteBeats(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockBatchDeleteBeats

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

func (*MockBatchDeleteBeats) Exec

func (_m *MockBatchDeleteBeats) Exec(ctx context.Context, ids uuid.UUIDs, creatorID string) ([]*entities.Beat, error)

Exec provides a mock function with given fields: ctx, ids, creatorID

type MockBatchDeleteBeats_Exec_Call

type MockBatchDeleteBeats_Exec_Call struct {
	*mock.Call
}

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

func (*MockBatchDeleteBeats_Exec_Call) Return

func (*MockBatchDeleteBeats_Exec_Call) Run

func (*MockBatchDeleteBeats_Exec_Call) RunAndReturn

type MockBatchDeleteBeats_Expecter

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

func (*MockBatchDeleteBeats_Expecter) Exec

func (_e *MockBatchDeleteBeats_Expecter) Exec(ctx interface{}, ids interface{}, creatorID interface{}) *MockBatchDeleteBeats_Exec_Call

Exec is a helper method to define mock.On call

  • ctx context.Context
  • ids uuid.UUIDs
  • creatorID string

type MockBatchDeletePlotPoints

type MockBatchDeletePlotPoints struct {
	mock.Mock
}

MockBatchDeletePlotPoints is an autogenerated mock type for the BatchDeletePlotPoints type

func NewMockBatchDeletePlotPoints

func NewMockBatchDeletePlotPoints(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockBatchDeletePlotPoints

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

func (*MockBatchDeletePlotPoints) Exec

func (_m *MockBatchDeletePlotPoints) Exec(ctx context.Context, ids uuid.UUIDs, creatorID string) ([]*entities.PlotPoint, error)

Exec provides a mock function with given fields: ctx, ids, creatorID

type MockBatchDeletePlotPoints_Exec_Call

type MockBatchDeletePlotPoints_Exec_Call struct {
	*mock.Call
}

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

func (*MockBatchDeletePlotPoints_Exec_Call) Return

func (*MockBatchDeletePlotPoints_Exec_Call) Run

func (*MockBatchDeletePlotPoints_Exec_Call) RunAndReturn

type MockBatchDeletePlotPoints_Expecter

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

func (*MockBatchDeletePlotPoints_Expecter) Exec

func (_e *MockBatchDeletePlotPoints_Expecter) Exec(ctx interface{}, ids interface{}, creatorID interface{}) *MockBatchDeletePlotPoints_Exec_Call

Exec is a helper method to define mock.On call

  • ctx context.Context
  • ids uuid.UUIDs
  • creatorID string

type MockCreateBeat

type MockCreateBeat struct {
	mock.Mock
}

MockCreateBeat is an autogenerated mock type for the CreateBeat type

func NewMockCreateBeat

func NewMockCreateBeat(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockCreateBeat

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

func (*MockCreateBeat) Exec

func (_m *MockCreateBeat) Exec(ctx context.Context, id uuid.UUID, now time.Time, data *dao.CreateBeatRequest) (*entities.Beat, error)

Exec provides a mock function with given fields: ctx, id, now, data

type MockCreateBeat_Exec_Call

type MockCreateBeat_Exec_Call struct {
	*mock.Call
}

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

func (*MockCreateBeat_Exec_Call) Return

func (*MockCreateBeat_Exec_Call) Run

func (*MockCreateBeat_Exec_Call) RunAndReturn

type MockCreateBeat_Expecter

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

func (*MockCreateBeat_Expecter) Exec

func (_e *MockCreateBeat_Expecter) Exec(ctx interface{}, id interface{}, now interface{}, data interface{}) *MockCreateBeat_Exec_Call

Exec is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID
  • now time.Time
  • data *dao.CreateBeatRequest

type MockCreatePlotPoint

type MockCreatePlotPoint struct {
	mock.Mock
}

MockCreatePlotPoint is an autogenerated mock type for the CreatePlotPoint type

func NewMockCreatePlotPoint

func NewMockCreatePlotPoint(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockCreatePlotPoint

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

func (*MockCreatePlotPoint) Exec

Exec provides a mock function with given fields: ctx, id, now, data

type MockCreatePlotPoint_Exec_Call

type MockCreatePlotPoint_Exec_Call struct {
	*mock.Call
}

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

func (*MockCreatePlotPoint_Exec_Call) Return

func (*MockCreatePlotPoint_Exec_Call) Run

type MockCreatePlotPoint_Expecter

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

func (*MockCreatePlotPoint_Expecter) Exec

func (_e *MockCreatePlotPoint_Expecter) Exec(ctx interface{}, id interface{}, now interface{}, data interface{}) *MockCreatePlotPoint_Exec_Call

Exec is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID
  • now time.Time
  • data *dao.CreatePlotPointRequest

type MockDeleteBeat

type MockDeleteBeat struct {
	mock.Mock
}

MockDeleteBeat is an autogenerated mock type for the DeleteBeat type

func NewMockDeleteBeat

func NewMockDeleteBeat(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockDeleteBeat

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

func (*MockDeleteBeat) Exec

func (_m *MockDeleteBeat) Exec(ctx context.Context, id uuid.UUID, creatorID string) (*entities.Beat, error)

Exec provides a mock function with given fields: ctx, id, creatorID

type MockDeleteBeat_Exec_Call

type MockDeleteBeat_Exec_Call struct {
	*mock.Call
}

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

func (*MockDeleteBeat_Exec_Call) Return

func (*MockDeleteBeat_Exec_Call) Run

func (_c *MockDeleteBeat_Exec_Call) Run(run func(ctx context.Context, id uuid.UUID, creatorID string)) *MockDeleteBeat_Exec_Call

func (*MockDeleteBeat_Exec_Call) RunAndReturn

type MockDeleteBeat_Expecter

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

func (*MockDeleteBeat_Expecter) Exec

func (_e *MockDeleteBeat_Expecter) Exec(ctx interface{}, id interface{}, creatorID interface{}) *MockDeleteBeat_Exec_Call

Exec is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID
  • creatorID string

type MockDeletePlotPoint

type MockDeletePlotPoint struct {
	mock.Mock
}

MockDeletePlotPoint is an autogenerated mock type for the DeletePlotPoint type

func NewMockDeletePlotPoint

func NewMockDeletePlotPoint(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockDeletePlotPoint

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

func (*MockDeletePlotPoint) Exec

func (_m *MockDeletePlotPoint) Exec(ctx context.Context, id uuid.UUID, creatorID string) (*entities.PlotPoint, error)

Exec provides a mock function with given fields: ctx, id, creatorID

type MockDeletePlotPoint_Exec_Call

type MockDeletePlotPoint_Exec_Call struct {
	*mock.Call
}

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

func (*MockDeletePlotPoint_Exec_Call) Return

func (*MockDeletePlotPoint_Exec_Call) Run

func (*MockDeletePlotPoint_Exec_Call) RunAndReturn

type MockDeletePlotPoint_Expecter

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

func (*MockDeletePlotPoint_Expecter) Exec

func (_e *MockDeletePlotPoint_Expecter) Exec(ctx interface{}, id interface{}, creatorID interface{}) *MockDeletePlotPoint_Exec_Call

Exec is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID
  • creatorID string

type MockGetBeat

type MockGetBeat struct {
	mock.Mock
}

MockGetBeat is an autogenerated mock type for the GetBeat type

func NewMockGetBeat

func NewMockGetBeat(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockGetBeat

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

func (_m *MockGetBeat) EXPECT() *MockGetBeat_Expecter

func (*MockGetBeat) Exec

func (_m *MockGetBeat) Exec(ctx context.Context, id uuid.UUID) (*entities.Beat, error)

Exec provides a mock function with given fields: ctx, id

type MockGetBeat_Exec_Call

type MockGetBeat_Exec_Call struct {
	*mock.Call
}

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

func (*MockGetBeat_Exec_Call) Return

func (*MockGetBeat_Exec_Call) Run

func (*MockGetBeat_Exec_Call) RunAndReturn

type MockGetBeat_Expecter

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

func (*MockGetBeat_Expecter) Exec

func (_e *MockGetBeat_Expecter) Exec(ctx interface{}, id interface{}) *MockGetBeat_Exec_Call

Exec is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID

type MockGetPlotPoint

type MockGetPlotPoint struct {
	mock.Mock
}

MockGetPlotPoint is an autogenerated mock type for the GetPlotPoint type

func NewMockGetPlotPoint

func NewMockGetPlotPoint(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockGetPlotPoint

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

func (*MockGetPlotPoint) Exec

Exec provides a mock function with given fields: ctx, id

type MockGetPlotPoint_Exec_Call

type MockGetPlotPoint_Exec_Call struct {
	*mock.Call
}

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

func (*MockGetPlotPoint_Exec_Call) Return

func (*MockGetPlotPoint_Exec_Call) Run

func (*MockGetPlotPoint_Exec_Call) RunAndReturn

type MockGetPlotPoint_Expecter

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

func (*MockGetPlotPoint_Expecter) Exec

func (_e *MockGetPlotPoint_Expecter) Exec(ctx interface{}, id interface{}) *MockGetPlotPoint_Exec_Call

Exec is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID

type MockListBeats

type MockListBeats struct {
	mock.Mock
}

MockListBeats is an autogenerated mock type for the ListBeats type

func NewMockListBeats

func NewMockListBeats(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockListBeats

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

func (_m *MockListBeats) EXPECT() *MockListBeats_Expecter

func (*MockListBeats) Exec

func (_m *MockListBeats) Exec(ctx context.Context, ids []uuid.UUID) ([]*entities.Beat, error)

Exec provides a mock function with given fields: ctx, ids

type MockListBeats_Exec_Call

type MockListBeats_Exec_Call struct {
	*mock.Call
}

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

func (*MockListBeats_Exec_Call) Return

func (*MockListBeats_Exec_Call) Run

func (*MockListBeats_Exec_Call) RunAndReturn

type MockListBeats_Expecter

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

func (*MockListBeats_Expecter) Exec

func (_e *MockListBeats_Expecter) Exec(ctx interface{}, ids interface{}) *MockListBeats_Exec_Call

Exec is a helper method to define mock.On call

  • ctx context.Context
  • ids []uuid.UUID

type MockListPlotPoints

type MockListPlotPoints struct {
	mock.Mock
}

MockListPlotPoints is an autogenerated mock type for the ListPlotPoints type

func NewMockListPlotPoints

func NewMockListPlotPoints(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockListPlotPoints

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

func (*MockListPlotPoints) Exec

func (_m *MockListPlotPoints) Exec(ctx context.Context, ids []uuid.UUID) ([]*entities.PlotPoint, error)

Exec provides a mock function with given fields: ctx, ids

type MockListPlotPoints_Exec_Call

type MockListPlotPoints_Exec_Call struct {
	*mock.Call
}

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

func (*MockListPlotPoints_Exec_Call) Return

func (*MockListPlotPoints_Exec_Call) Run

func (*MockListPlotPoints_Exec_Call) RunAndReturn

type MockListPlotPoints_Expecter

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

func (*MockListPlotPoints_Expecter) Exec

func (_e *MockListPlotPoints_Expecter) Exec(ctx interface{}, ids interface{}) *MockListPlotPoints_Exec_Call

Exec is a helper method to define mock.On call

  • ctx context.Context
  • ids []uuid.UUID

type MockSearchBeats

type MockSearchBeats struct {
	mock.Mock
}

MockSearchBeats is an autogenerated mock type for the SearchBeats type

func NewMockSearchBeats

func NewMockSearchBeats(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockSearchBeats

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

func (*MockSearchBeats) Exec

func (_m *MockSearchBeats) Exec(ctx context.Context, request *dao.SearchBeatsRequest) (uuid.UUIDs, error)

Exec provides a mock function with given fields: ctx, request

type MockSearchBeats_Exec_Call

type MockSearchBeats_Exec_Call struct {
	*mock.Call
}

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

func (*MockSearchBeats_Exec_Call) Return

func (*MockSearchBeats_Exec_Call) Run

func (*MockSearchBeats_Exec_Call) RunAndReturn

type MockSearchBeats_Expecter

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

func (*MockSearchBeats_Expecter) Exec

func (_e *MockSearchBeats_Expecter) Exec(ctx interface{}, request interface{}) *MockSearchBeats_Exec_Call

Exec is a helper method to define mock.On call

  • ctx context.Context
  • request *dao.SearchBeatsRequest

type MockSearchPlotPoints

type MockSearchPlotPoints struct {
	mock.Mock
}

MockSearchPlotPoints is an autogenerated mock type for the SearchPlotPoints type

func NewMockSearchPlotPoints

func NewMockSearchPlotPoints(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockSearchPlotPoints

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

func (*MockSearchPlotPoints) Exec

Exec provides a mock function with given fields: ctx, request

type MockSearchPlotPoints_Exec_Call

type MockSearchPlotPoints_Exec_Call struct {
	*mock.Call
}

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

func (*MockSearchPlotPoints_Exec_Call) Return

func (*MockSearchPlotPoints_Exec_Call) Run

func (*MockSearchPlotPoints_Exec_Call) RunAndReturn

type MockSearchPlotPoints_Expecter

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

func (*MockSearchPlotPoints_Expecter) Exec

func (_e *MockSearchPlotPoints_Expecter) Exec(ctx interface{}, request interface{}) *MockSearchPlotPoints_Exec_Call

Exec is a helper method to define mock.On call

  • ctx context.Context
  • request *dao.SearchPlotPointsRequest

type MockUpdateBeat

type MockUpdateBeat struct {
	mock.Mock
}

MockUpdateBeat is an autogenerated mock type for the UpdateBeat type

func NewMockUpdateBeat

func NewMockUpdateBeat(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockUpdateBeat

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

func (*MockUpdateBeat) Exec

func (_m *MockUpdateBeat) Exec(ctx context.Context, id uuid.UUID, now time.Time, data *dao.UpdateBeatRequest) (*entities.Beat, error)

Exec provides a mock function with given fields: ctx, id, now, data

type MockUpdateBeat_Exec_Call

type MockUpdateBeat_Exec_Call struct {
	*mock.Call
}

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

func (*MockUpdateBeat_Exec_Call) Return

func (*MockUpdateBeat_Exec_Call) Run

func (*MockUpdateBeat_Exec_Call) RunAndReturn

type MockUpdateBeat_Expecter

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

func (*MockUpdateBeat_Expecter) Exec

func (_e *MockUpdateBeat_Expecter) Exec(ctx interface{}, id interface{}, now interface{}, data interface{}) *MockUpdateBeat_Exec_Call

Exec is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID
  • now time.Time
  • data *dao.UpdateBeatRequest

type MockUpdatePlotPoint

type MockUpdatePlotPoint struct {
	mock.Mock
}

MockUpdatePlotPoint is an autogenerated mock type for the UpdatePlotPoint type

func NewMockUpdatePlotPoint

func NewMockUpdatePlotPoint(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockUpdatePlotPoint

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

func (*MockUpdatePlotPoint) Exec

Exec provides a mock function with given fields: ctx, id, now, data

type MockUpdatePlotPoint_Exec_Call

type MockUpdatePlotPoint_Exec_Call struct {
	*mock.Call
}

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

func (*MockUpdatePlotPoint_Exec_Call) Return

func (*MockUpdatePlotPoint_Exec_Call) Run

type MockUpdatePlotPoint_Expecter

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

func (*MockUpdatePlotPoint_Expecter) Exec

func (_e *MockUpdatePlotPoint_Expecter) Exec(ctx interface{}, id interface{}, now interface{}, data interface{}) *MockUpdatePlotPoint_Exec_Call

Exec is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID
  • now time.Time
  • data *dao.UpdatePlotPointRequest

Jump to

Keyboard shortcuts

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