mocks

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	mock.Mock
}

Logger is an autogenerated mock type for the Logger type

func NewLogger

func NewLogger(t interface {
	mock.TestingT
	Cleanup(func())
}) *Logger

NewLogger creates a new instance of Logger. 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 (*Logger) Debug

func (_m *Logger) Debug(ctx context.Context, msg string, args ...interface{})

Debug provides a mock function with given fields: ctx, msg, args

func (*Logger) EXPECT

func (_m *Logger) EXPECT() *Logger_Expecter

func (*Logger) Error

func (_m *Logger) Error(ctx context.Context, msg string, args ...interface{})

Error provides a mock function with given fields: ctx, msg, args

func (*Logger) Info

func (_m *Logger) Info(ctx context.Context, msg string, args ...interface{})

Info provides a mock function with given fields: ctx, msg, args

func (*Logger) Warn

func (_m *Logger) Warn(ctx context.Context, msg string, args ...interface{})

Warn provides a mock function with given fields: ctx, msg, args

type Logger_Debug_Call

type Logger_Debug_Call struct {
	*mock.Call
}

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

func (*Logger_Debug_Call) Return

func (_c *Logger_Debug_Call) Return() *Logger_Debug_Call

func (*Logger_Debug_Call) Run

func (_c *Logger_Debug_Call) Run(run func(ctx context.Context, msg string, args ...interface{})) *Logger_Debug_Call

func (*Logger_Debug_Call) RunAndReturn

func (_c *Logger_Debug_Call) RunAndReturn(run func(context.Context, string, ...interface{})) *Logger_Debug_Call

type Logger_Error_Call

type Logger_Error_Call struct {
	*mock.Call
}

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

func (*Logger_Error_Call) Return

func (_c *Logger_Error_Call) Return() *Logger_Error_Call

func (*Logger_Error_Call) Run

func (_c *Logger_Error_Call) Run(run func(ctx context.Context, msg string, args ...interface{})) *Logger_Error_Call

func (*Logger_Error_Call) RunAndReturn

func (_c *Logger_Error_Call) RunAndReturn(run func(context.Context, string, ...interface{})) *Logger_Error_Call

type Logger_Expecter

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

func (*Logger_Expecter) Debug

func (_e *Logger_Expecter) Debug(ctx interface{}, msg interface{}, args ...interface{}) *Logger_Debug_Call

Debug is a helper method to define mock.On call

  • ctx context.Context
  • msg string
  • args ...interface{}

func (*Logger_Expecter) Error

func (_e *Logger_Expecter) Error(ctx interface{}, msg interface{}, args ...interface{}) *Logger_Error_Call

Error is a helper method to define mock.On call

  • ctx context.Context
  • msg string
  • args ...interface{}

func (*Logger_Expecter) Info

func (_e *Logger_Expecter) Info(ctx interface{}, msg interface{}, args ...interface{}) *Logger_Info_Call

Info is a helper method to define mock.On call

  • ctx context.Context
  • msg string
  • args ...interface{}

func (*Logger_Expecter) Warn

func (_e *Logger_Expecter) Warn(ctx interface{}, msg interface{}, args ...interface{}) *Logger_Warn_Call

Warn is a helper method to define mock.On call

  • ctx context.Context
  • msg string
  • args ...interface{}

type Logger_Info_Call

type Logger_Info_Call struct {
	*mock.Call
}

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

func (*Logger_Info_Call) Return

func (_c *Logger_Info_Call) Return() *Logger_Info_Call

func (*Logger_Info_Call) Run

func (_c *Logger_Info_Call) Run(run func(ctx context.Context, msg string, args ...interface{})) *Logger_Info_Call

func (*Logger_Info_Call) RunAndReturn

func (_c *Logger_Info_Call) RunAndReturn(run func(context.Context, string, ...interface{})) *Logger_Info_Call

type Logger_Warn_Call

type Logger_Warn_Call struct {
	*mock.Call
}

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

func (*Logger_Warn_Call) Return

func (_c *Logger_Warn_Call) Return() *Logger_Warn_Call

func (*Logger_Warn_Call) Run

func (_c *Logger_Warn_Call) Run(run func(ctx context.Context, msg string, args ...interface{})) *Logger_Warn_Call

func (*Logger_Warn_Call) RunAndReturn

func (_c *Logger_Warn_Call) RunAndReturn(run func(context.Context, string, ...interface{})) *Logger_Warn_Call

type Storage

type Storage struct {
	mock.Mock
}

Storage is an autogenerated mock type for the Storage type

func NewStorage

func NewStorage(t interface {
	mock.TestingT
	Cleanup(func())
}) *Storage

NewStorage creates a new instance of Storage. 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 (*Storage) Connect

func (_m *Storage) Connect(ctx context.Context) error

Connect provides a mock function with given fields: ctx

func (*Storage) CreateEvent

func (_m *Storage) CreateEvent(ctx context.Context, event *types.Event) (*types.Event, error)

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

func (*Storage) DeleteEvent

func (_m *Storage) DeleteEvent(ctx context.Context, id uuid.UUID) error

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

func (*Storage) EXPECT

func (_m *Storage) EXPECT() *Storage_Expecter

func (*Storage) GetAllUserEvents

func (_m *Storage) GetAllUserEvents(ctx context.Context, userID string) ([]*types.Event, error)

GetAllUserEvents provides a mock function with given fields: ctx, userID

func (*Storage) GetEvent

func (_m *Storage) GetEvent(ctx context.Context, id uuid.UUID) (*types.Event, error)

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

func (*Storage) GetEventsForDay

func (_m *Storage) GetEventsForDay(ctx context.Context, date time.Time, userID *string) ([]*types.Event, error)

GetEventsForDay provides a mock function with given fields: ctx, date, userID

func (*Storage) GetEventsForMonth

func (_m *Storage) GetEventsForMonth(ctx context.Context, date time.Time, userID *string) ([]*types.Event, error)

GetEventsForMonth provides a mock function with given fields: ctx, date, userID

func (*Storage) GetEventsForPeriod

func (_m *Storage) GetEventsForPeriod(ctx context.Context, dateStart time.Time, dateEnd time.Time, userID *string) ([]*types.Event, error)

GetEventsForPeriod provides a mock function with given fields: ctx, dateStart, dateEnd, userID

func (*Storage) GetEventsForWeek

func (_m *Storage) GetEventsForWeek(ctx context.Context, date time.Time, userID *string) ([]*types.Event, error)

GetEventsForWeek provides a mock function with given fields: ctx, date, userID

func (*Storage) UpdateEvent

func (_m *Storage) UpdateEvent(ctx context.Context, id uuid.UUID, data *types.EventData) (*types.Event, error)

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

type Storage_Connect_Call

type Storage_Connect_Call struct {
	*mock.Call
}

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

func (*Storage_Connect_Call) Return

func (*Storage_Connect_Call) Run

func (_c *Storage_Connect_Call) Run(run func(ctx context.Context)) *Storage_Connect_Call

func (*Storage_Connect_Call) RunAndReturn

func (_c *Storage_Connect_Call) RunAndReturn(run func(context.Context) error) *Storage_Connect_Call

type Storage_CreateEvent_Call

type Storage_CreateEvent_Call struct {
	*mock.Call
}

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

func (*Storage_CreateEvent_Call) Return

func (*Storage_CreateEvent_Call) Run

func (*Storage_CreateEvent_Call) RunAndReturn

type Storage_DeleteEvent_Call

type Storage_DeleteEvent_Call struct {
	*mock.Call
}

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

func (*Storage_DeleteEvent_Call) Return

func (*Storage_DeleteEvent_Call) Run

func (*Storage_DeleteEvent_Call) RunAndReturn

type Storage_Expecter

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

func (*Storage_Expecter) Connect

func (_e *Storage_Expecter) Connect(ctx interface{}) *Storage_Connect_Call

Connect is a helper method to define mock.On call

  • ctx context.Context

func (*Storage_Expecter) CreateEvent

func (_e *Storage_Expecter) CreateEvent(ctx interface{}, event interface{}) *Storage_CreateEvent_Call

CreateEvent is a helper method to define mock.On call

  • ctx context.Context
  • event *types.Event

func (*Storage_Expecter) DeleteEvent

func (_e *Storage_Expecter) DeleteEvent(ctx interface{}, id interface{}) *Storage_DeleteEvent_Call

DeleteEvent is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID

func (*Storage_Expecter) GetAllUserEvents

func (_e *Storage_Expecter) GetAllUserEvents(ctx interface{}, userID interface{}) *Storage_GetAllUserEvents_Call

GetAllUserEvents is a helper method to define mock.On call

  • ctx context.Context
  • userID string

func (*Storage_Expecter) GetEvent

func (_e *Storage_Expecter) GetEvent(ctx interface{}, id interface{}) *Storage_GetEvent_Call

GetEvent is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID

func (*Storage_Expecter) GetEventsForDay

func (_e *Storage_Expecter) GetEventsForDay(ctx interface{}, date interface{}, userID interface{}) *Storage_GetEventsForDay_Call

GetEventsForDay is a helper method to define mock.On call

  • ctx context.Context
  • date time.Time
  • userID *string

func (*Storage_Expecter) GetEventsForMonth

func (_e *Storage_Expecter) GetEventsForMonth(ctx interface{}, date interface{}, userID interface{}) *Storage_GetEventsForMonth_Call

GetEventsForMonth is a helper method to define mock.On call

  • ctx context.Context
  • date time.Time
  • userID *string

func (*Storage_Expecter) GetEventsForPeriod

func (_e *Storage_Expecter) GetEventsForPeriod(ctx interface{}, dateStart interface{}, dateEnd interface{}, userID interface{}) *Storage_GetEventsForPeriod_Call

GetEventsForPeriod is a helper method to define mock.On call

  • ctx context.Context
  • dateStart time.Time
  • dateEnd time.Time
  • userID *string

func (*Storage_Expecter) GetEventsForWeek

func (_e *Storage_Expecter) GetEventsForWeek(ctx interface{}, date interface{}, userID interface{}) *Storage_GetEventsForWeek_Call

GetEventsForWeek is a helper method to define mock.On call

  • ctx context.Context
  • date time.Time
  • userID *string

func (*Storage_Expecter) UpdateEvent

func (_e *Storage_Expecter) UpdateEvent(ctx interface{}, id interface{}, data interface{}) *Storage_UpdateEvent_Call

UpdateEvent is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID
  • data *types.EventData

type Storage_GetAllUserEvents_Call

type Storage_GetAllUserEvents_Call struct {
	*mock.Call
}

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

func (*Storage_GetAllUserEvents_Call) Return

func (*Storage_GetAllUserEvents_Call) Run

func (*Storage_GetAllUserEvents_Call) RunAndReturn

type Storage_GetEvent_Call

type Storage_GetEvent_Call struct {
	*mock.Call
}

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

func (*Storage_GetEvent_Call) Return

func (*Storage_GetEvent_Call) Run

func (*Storage_GetEvent_Call) RunAndReturn

type Storage_GetEventsForDay_Call

type Storage_GetEventsForDay_Call struct {
	*mock.Call
}

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

func (*Storage_GetEventsForDay_Call) Return

func (*Storage_GetEventsForDay_Call) Run

func (*Storage_GetEventsForDay_Call) RunAndReturn

type Storage_GetEventsForMonth_Call

type Storage_GetEventsForMonth_Call struct {
	*mock.Call
}

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

func (*Storage_GetEventsForMonth_Call) Return

func (*Storage_GetEventsForMonth_Call) Run

func (*Storage_GetEventsForMonth_Call) RunAndReturn

type Storage_GetEventsForPeriod_Call

type Storage_GetEventsForPeriod_Call struct {
	*mock.Call
}

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

func (*Storage_GetEventsForPeriod_Call) Return

func (*Storage_GetEventsForPeriod_Call) Run

func (_c *Storage_GetEventsForPeriod_Call) Run(run func(ctx context.Context, dateStart time.Time, dateEnd time.Time, userID *string)) *Storage_GetEventsForPeriod_Call

func (*Storage_GetEventsForPeriod_Call) RunAndReturn

type Storage_GetEventsForWeek_Call

type Storage_GetEventsForWeek_Call struct {
	*mock.Call
}

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

func (*Storage_GetEventsForWeek_Call) Return

func (*Storage_GetEventsForWeek_Call) Run

func (*Storage_GetEventsForWeek_Call) RunAndReturn

type Storage_UpdateEvent_Call

type Storage_UpdateEvent_Call struct {
	*mock.Call
}

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

func (*Storage_UpdateEvent_Call) Return

func (*Storage_UpdateEvent_Call) Run

func (*Storage_UpdateEvent_Call) RunAndReturn

Jump to

Keyboard shortcuts

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