mocks

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sink

type Sink struct {
	mock.Mock
}

Sink is an autogenerated mock type for the Sink type

func NewSink

func NewSink(t interface {
	mock.TestingT
	Cleanup(func())
}) *Sink

NewSink creates a new instance of Sink. 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 (*Sink) CreateEvent

func (_m *Sink) CreateEvent(ctx context.Context, e models.Event) error

CreateEvent provides a mock function with given fields: ctx, e

func (*Sink) DeleteEvent

func (_m *Sink) DeleteEvent(ctx context.Context, e models.Event) error

DeleteEvent provides a mock function with given fields: ctx, e

func (*Sink) EXPECT added in v0.8.1

func (_m *Sink) EXPECT() *Sink_Expecter

func (*Sink) EventsInTimeframe

func (_m *Sink) EventsInTimeframe(ctx context.Context, start time.Time, end time.Time) ([]models.Event, error)

EventsInTimeframe provides a mock function with given fields: ctx, start, end

func (*Sink) GetCalendarID added in v0.8.0

func (_m *Sink) GetCalendarID() string

GetCalendarID provides a mock function with given fields:

func (*Sink) Name

func (_m *Sink) Name() string

Name provides a mock function with given fields:

func (*Sink) UpdateEvent

func (_m *Sink) UpdateEvent(ctx context.Context, e models.Event) error

UpdateEvent provides a mock function with given fields: ctx, e

type Sink_CreateEvent_Call added in v0.8.1

type Sink_CreateEvent_Call struct {
	*mock.Call
}

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

func (*Sink_CreateEvent_Call) Return added in v0.8.1

func (*Sink_CreateEvent_Call) Run added in v0.8.1

func (*Sink_CreateEvent_Call) RunAndReturn added in v0.8.1

type Sink_DeleteEvent_Call added in v0.8.1

type Sink_DeleteEvent_Call struct {
	*mock.Call
}

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

func (*Sink_DeleteEvent_Call) Return added in v0.8.1

func (*Sink_DeleteEvent_Call) Run added in v0.8.1

func (*Sink_DeleteEvent_Call) RunAndReturn added in v0.8.1

type Sink_EventsInTimeframe_Call added in v0.8.1

type Sink_EventsInTimeframe_Call struct {
	*mock.Call
}

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

func (*Sink_EventsInTimeframe_Call) Return added in v0.8.1

func (*Sink_EventsInTimeframe_Call) Run added in v0.8.1

func (*Sink_EventsInTimeframe_Call) RunAndReturn added in v0.8.1

type Sink_Expecter added in v0.8.1

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

func (*Sink_Expecter) CreateEvent added in v0.8.1

func (_e *Sink_Expecter) CreateEvent(ctx interface{}, e interface{}) *Sink_CreateEvent_Call

CreateEvent is a helper method to define mock.On call

  • ctx context.Context
  • e models.Event

func (*Sink_Expecter) DeleteEvent added in v0.8.1

func (_e *Sink_Expecter) DeleteEvent(ctx interface{}, e interface{}) *Sink_DeleteEvent_Call

DeleteEvent is a helper method to define mock.On call

  • ctx context.Context
  • e models.Event

func (*Sink_Expecter) EventsInTimeframe added in v0.8.1

func (_e *Sink_Expecter) EventsInTimeframe(ctx interface{}, start interface{}, end interface{}) *Sink_EventsInTimeframe_Call

EventsInTimeframe is a helper method to define mock.On call

  • ctx context.Context
  • start time.Time
  • end time.Time

func (*Sink_Expecter) GetCalendarID added in v0.8.1

func (_e *Sink_Expecter) GetCalendarID() *Sink_GetCalendarID_Call

GetCalendarID is a helper method to define mock.On call

func (*Sink_Expecter) Name added in v0.8.1

func (_e *Sink_Expecter) Name() *Sink_Name_Call

Name is a helper method to define mock.On call

func (*Sink_Expecter) UpdateEvent added in v0.8.1

func (_e *Sink_Expecter) UpdateEvent(ctx interface{}, e interface{}) *Sink_UpdateEvent_Call

UpdateEvent is a helper method to define mock.On call

  • ctx context.Context
  • e models.Event

type Sink_GetCalendarID_Call added in v0.8.1

type Sink_GetCalendarID_Call struct {
	*mock.Call
}

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

func (*Sink_GetCalendarID_Call) Return added in v0.8.1

func (*Sink_GetCalendarID_Call) Run added in v0.8.1

func (_c *Sink_GetCalendarID_Call) Run(run func()) *Sink_GetCalendarID_Call

func (*Sink_GetCalendarID_Call) RunAndReturn added in v0.8.1

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

type Sink_Name_Call added in v0.8.1

type Sink_Name_Call struct {
	*mock.Call
}

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

func (*Sink_Name_Call) Return added in v0.8.1

func (_c *Sink_Name_Call) Return(_a0 string) *Sink_Name_Call

func (*Sink_Name_Call) Run added in v0.8.1

func (_c *Sink_Name_Call) Run(run func()) *Sink_Name_Call

func (*Sink_Name_Call) RunAndReturn added in v0.8.1

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

type Sink_UpdateEvent_Call added in v0.8.1

type Sink_UpdateEvent_Call struct {
	*mock.Call
}

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

func (*Sink_UpdateEvent_Call) Return added in v0.8.1

func (*Sink_UpdateEvent_Call) Run added in v0.8.1

func (*Sink_UpdateEvent_Call) RunAndReturn added in v0.8.1

type Source

type Source struct {
	mock.Mock
}

Source is an autogenerated mock type for the Source type

func NewSource

func NewSource(t interface {
	mock.TestingT
	Cleanup(func())
}) *Source

NewSource creates a new instance of Source. 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 (*Source) EXPECT added in v0.8.1

func (_m *Source) EXPECT() *Source_Expecter

func (*Source) EventsInTimeframe

func (_m *Source) EventsInTimeframe(ctx context.Context, start time.Time, end time.Time) ([]models.Event, error)

EventsInTimeframe provides a mock function with given fields: ctx, start, end

func (*Source) GetCalendarID added in v0.8.0

func (_m *Source) GetCalendarID() string

GetCalendarID provides a mock function with given fields:

func (*Source) Name

func (_m *Source) Name() string

Name provides a mock function with given fields:

type Source_EventsInTimeframe_Call added in v0.8.1

type Source_EventsInTimeframe_Call struct {
	*mock.Call
}

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

func (*Source_EventsInTimeframe_Call) Return added in v0.8.1

func (*Source_EventsInTimeframe_Call) Run added in v0.8.1

func (*Source_EventsInTimeframe_Call) RunAndReturn added in v0.8.1

type Source_Expecter added in v0.8.1

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

func (*Source_Expecter) EventsInTimeframe added in v0.8.1

func (_e *Source_Expecter) EventsInTimeframe(ctx interface{}, start interface{}, end interface{}) *Source_EventsInTimeframe_Call

EventsInTimeframe is a helper method to define mock.On call

  • ctx context.Context
  • start time.Time
  • end time.Time

func (*Source_Expecter) GetCalendarID added in v0.8.1

func (_e *Source_Expecter) GetCalendarID() *Source_GetCalendarID_Call

GetCalendarID is a helper method to define mock.On call

func (*Source_Expecter) Name added in v0.8.1

func (_e *Source_Expecter) Name() *Source_Name_Call

Name is a helper method to define mock.On call

type Source_GetCalendarID_Call added in v0.8.1

type Source_GetCalendarID_Call struct {
	*mock.Call
}

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

func (*Source_GetCalendarID_Call) Return added in v0.8.1

func (*Source_GetCalendarID_Call) Run added in v0.8.1

func (*Source_GetCalendarID_Call) RunAndReturn added in v0.8.1

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

type Source_Name_Call added in v0.8.1

type Source_Name_Call struct {
	*mock.Call
}

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

func (*Source_Name_Call) Return added in v0.8.1

func (_c *Source_Name_Call) Return(_a0 string) *Source_Name_Call

func (*Source_Name_Call) Run added in v0.8.1

func (_c *Source_Name_Call) Run(run func()) *Source_Name_Call

func (*Source_Name_Call) RunAndReturn added in v0.8.1

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

Jump to

Keyboard shortcuts

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