mocks

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAuthService

type MockAuthService struct {
	mock.Mock
}

MockAuthService is an autogenerated mock type for the AuthService type

func NewMockAuthService

func NewMockAuthService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockAuthService

NewMockAuthService creates a new instance of MockAuthService. 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 (*MockAuthService) AddUser

func (_mock *MockAuthService) AddUser(ctx context.Context, by auth.Principal, name string, pw string, lang string) (auth.UserInfo, error)

AddUser provides a mock function for the type MockAuthService

func (*MockAuthService) Audit

func (_mock *MockAuthService) Audit(ctx context.Context, from time.Time, to time.Time) ([]auth.AuditInfo, error)

Audit provides a mock function for the type MockAuthService

func (*MockAuthService) CreateToken

func (_mock *MockAuthService) CreateToken(ctx context.Context, by auth.Principal, name string, expires time.Duration) (auth.NewToken, error)

CreateToken provides a mock function for the type MockAuthService

func (*MockAuthService) DeleteUser

func (_mock *MockAuthService) DeleteUser(ctx context.Context, by auth.Principal, id int64) error

DeleteUser provides a mock function for the type MockAuthService

func (*MockAuthService) EXPECT

func (*MockAuthService) Login

func (_mock *MockAuthService) Login(ctx context.Context, name string, pw string, ip string) (auth.Login, error)

Login provides a mock function for the type MockAuthService

func (*MockAuthService) Logout

func (_mock *MockAuthService) Logout(ctx context.Context, p auth.Principal) error

Logout provides a mock function for the type MockAuthService

func (*MockAuthService) RevokeToken

func (_mock *MockAuthService) RevokeToken(ctx context.Context, by auth.Principal, id string) error

RevokeToken provides a mock function for the type MockAuthService

func (*MockAuthService) SetPassword

func (_mock *MockAuthService) SetPassword(ctx context.Context, by auth.Principal, id int64, pw string) error

SetPassword provides a mock function for the type MockAuthService

func (*MockAuthService) Setup

func (_mock *MockAuthService) Setup(ctx context.Context, r auth.SetupRequest) (auth.Login, error)

Setup provides a mock function for the type MockAuthService

func (*MockAuthService) SetupRequired

func (_mock *MockAuthService) SetupRequired(ctx context.Context) (bool, error)

SetupRequired provides a mock function for the type MockAuthService

func (*MockAuthService) Tokens

func (_mock *MockAuthService) Tokens(ctx context.Context) ([]auth.TokenInfo, error)

Tokens provides a mock function for the type MockAuthService

func (*MockAuthService) Users

func (_mock *MockAuthService) Users(ctx context.Context) ([]auth.UserInfo, error)

Users provides a mock function for the type MockAuthService

type MockAuthService_AddUser_Call

type MockAuthService_AddUser_Call struct {
	*mock.Call
}

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

func (*MockAuthService_AddUser_Call) Return

func (*MockAuthService_AddUser_Call) Run

func (*MockAuthService_AddUser_Call) RunAndReturn

type MockAuthService_Audit_Call

type MockAuthService_Audit_Call struct {
	*mock.Call
}

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

func (*MockAuthService_Audit_Call) Return

func (*MockAuthService_Audit_Call) Run

func (*MockAuthService_Audit_Call) RunAndReturn

func (_c *MockAuthService_Audit_Call) RunAndReturn(run func(ctx context.Context, from time.Time, to time.Time) ([]auth.AuditInfo, error)) *MockAuthService_Audit_Call

type MockAuthService_CreateToken_Call

type MockAuthService_CreateToken_Call struct {
	*mock.Call
}

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

func (*MockAuthService_CreateToken_Call) Return

func (*MockAuthService_CreateToken_Call) Run

func (*MockAuthService_CreateToken_Call) RunAndReturn

type MockAuthService_DeleteUser_Call

type MockAuthService_DeleteUser_Call struct {
	*mock.Call
}

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

func (*MockAuthService_DeleteUser_Call) Return

func (*MockAuthService_DeleteUser_Call) Run

func (*MockAuthService_DeleteUser_Call) RunAndReturn

type MockAuthService_Expecter

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

func (*MockAuthService_Expecter) AddUser

func (_e *MockAuthService_Expecter) AddUser(ctx any, by any, name any, pw any, lang any) *MockAuthService_AddUser_Call

AddUser is a helper method to define mock.On call

  • ctx context.Context
  • by auth.Principal
  • name string
  • pw string
  • lang string

func (*MockAuthService_Expecter) Audit

Audit is a helper method to define mock.On call

  • ctx context.Context
  • from time.Time
  • to time.Time

func (*MockAuthService_Expecter) CreateToken

func (_e *MockAuthService_Expecter) CreateToken(ctx any, by any, name any, expires any) *MockAuthService_CreateToken_Call

CreateToken is a helper method to define mock.On call

  • ctx context.Context
  • by auth.Principal
  • name string
  • expires time.Duration

func (*MockAuthService_Expecter) DeleteUser

DeleteUser is a helper method to define mock.On call

  • ctx context.Context
  • by auth.Principal
  • id int64

func (*MockAuthService_Expecter) Login

func (_e *MockAuthService_Expecter) Login(ctx any, name any, pw any, ip any) *MockAuthService_Login_Call

Login is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • pw string
  • ip string

func (*MockAuthService_Expecter) Logout

Logout is a helper method to define mock.On call

  • ctx context.Context
  • p auth.Principal

func (*MockAuthService_Expecter) RevokeToken

RevokeToken is a helper method to define mock.On call

  • ctx context.Context
  • by auth.Principal
  • id string

func (*MockAuthService_Expecter) SetPassword

func (_e *MockAuthService_Expecter) SetPassword(ctx any, by any, id any, pw any) *MockAuthService_SetPassword_Call

SetPassword is a helper method to define mock.On call

  • ctx context.Context
  • by auth.Principal
  • id int64
  • pw string

func (*MockAuthService_Expecter) Setup

Setup is a helper method to define mock.On call

  • ctx context.Context
  • r auth.SetupRequest

func (*MockAuthService_Expecter) SetupRequired

SetupRequired is a helper method to define mock.On call

  • ctx context.Context

func (*MockAuthService_Expecter) Tokens

Tokens is a helper method to define mock.On call

  • ctx context.Context

func (*MockAuthService_Expecter) Users

Users is a helper method to define mock.On call

  • ctx context.Context

type MockAuthService_Login_Call

type MockAuthService_Login_Call struct {
	*mock.Call
}

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

func (*MockAuthService_Login_Call) Return

func (*MockAuthService_Login_Call) Run

func (*MockAuthService_Login_Call) RunAndReturn

func (_c *MockAuthService_Login_Call) RunAndReturn(run func(ctx context.Context, name string, pw string, ip string) (auth.Login, error)) *MockAuthService_Login_Call

type MockAuthService_Logout_Call

type MockAuthService_Logout_Call struct {
	*mock.Call
}

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

func (*MockAuthService_Logout_Call) Return

func (*MockAuthService_Logout_Call) Run

func (*MockAuthService_Logout_Call) RunAndReturn

type MockAuthService_RevokeToken_Call

type MockAuthService_RevokeToken_Call struct {
	*mock.Call
}

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

func (*MockAuthService_RevokeToken_Call) Return

func (*MockAuthService_RevokeToken_Call) Run

func (*MockAuthService_RevokeToken_Call) RunAndReturn

type MockAuthService_SetPassword_Call

type MockAuthService_SetPassword_Call struct {
	*mock.Call
}

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

func (*MockAuthService_SetPassword_Call) Return

func (*MockAuthService_SetPassword_Call) Run

func (*MockAuthService_SetPassword_Call) RunAndReturn

type MockAuthService_SetupRequired_Call

type MockAuthService_SetupRequired_Call struct {
	*mock.Call
}

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

func (*MockAuthService_SetupRequired_Call) Return

func (*MockAuthService_SetupRequired_Call) Run

func (*MockAuthService_SetupRequired_Call) RunAndReturn

type MockAuthService_Setup_Call

type MockAuthService_Setup_Call struct {
	*mock.Call
}

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

func (*MockAuthService_Setup_Call) Return

func (*MockAuthService_Setup_Call) Run

func (*MockAuthService_Setup_Call) RunAndReturn

type MockAuthService_Tokens_Call

type MockAuthService_Tokens_Call struct {
	*mock.Call
}

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

func (*MockAuthService_Tokens_Call) Return

func (*MockAuthService_Tokens_Call) Run

func (*MockAuthService_Tokens_Call) RunAndReturn

type MockAuthService_Users_Call

type MockAuthService_Users_Call struct {
	*mock.Call
}

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

func (*MockAuthService_Users_Call) Return

func (*MockAuthService_Users_Call) Run

func (*MockAuthService_Users_Call) RunAndReturn

type MockConfigService

type MockConfigService struct {
	mock.Mock
}

MockConfigService is an autogenerated mock type for the ConfigService type

func NewMockConfigService

func NewMockConfigService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockConfigService

NewMockConfigService creates a new instance of MockConfigService. 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 (*MockConfigService) DeleteObject

func (_mock *MockConfigService) DeleteObject(ctx context.Context, by string, kind string, id string) (int64, error)

DeleteObject provides a mock function for the type MockConfigService

func (*MockConfigService) EXPECT

func (*MockConfigService) Export

func (_mock *MockConfigService) Export(ctx context.Context) ([]byte, error)

Export provides a mock function for the type MockConfigService

func (*MockConfigService) Object

func (_mock *MockConfigService) Object(ctx context.Context, kind string, id string) (configstore.ObjectView, error)

Object provides a mock function for the type MockConfigService

func (*MockConfigService) Overview

func (_mock *MockConfigService) Overview(ctx context.Context) (configstore.Overview, error)

Overview provides a mock function for the type MockConfigService

func (*MockConfigService) Probe

func (_mock *MockConfigService) Probe(ctx context.Context, by string, cs []configstore.Change, device string) (service.ProbeResult, error)

Probe provides a mock function for the type MockConfigService

func (*MockConfigService) PutObject

func (_mock *MockConfigService) PutObject(ctx context.Context, by string, kind string, id string, body map[string]any) (configstore.ObjectView, int64, error)

PutObject provides a mock function for the type MockConfigService

func (*MockConfigService) PutObjects

func (_mock *MockConfigService) PutObjects(ctx context.Context, by string, cs []configstore.Change) (configstore.Overview, error)

PutObjects provides a mock function for the type MockConfigService

func (*MockConfigService) PutSettings

func (_mock *MockConfigService) PutSettings(ctx context.Context, by string, set map[string]any) (configstore.Overview, error)

PutSettings provides a mock function for the type MockConfigService

type MockConfigService_DeleteObject_Call

type MockConfigService_DeleteObject_Call struct {
	*mock.Call
}

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

func (*MockConfigService_DeleteObject_Call) Return

func (*MockConfigService_DeleteObject_Call) Run

func (*MockConfigService_DeleteObject_Call) RunAndReturn

type MockConfigService_Expecter

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

func (*MockConfigService_Expecter) DeleteObject

func (_e *MockConfigService_Expecter) DeleteObject(ctx any, by any, kind any, id any) *MockConfigService_DeleteObject_Call

DeleteObject is a helper method to define mock.On call

  • ctx context.Context
  • by string
  • kind string
  • id string

func (*MockConfigService_Expecter) Export

Export is a helper method to define mock.On call

  • ctx context.Context

func (*MockConfigService_Expecter) Object

Object is a helper method to define mock.On call

  • ctx context.Context
  • kind string
  • id string

func (*MockConfigService_Expecter) Overview

Overview is a helper method to define mock.On call

  • ctx context.Context

func (*MockConfigService_Expecter) Probe

func (_e *MockConfigService_Expecter) Probe(ctx any, by any, cs any, device any) *MockConfigService_Probe_Call

Probe is a helper method to define mock.On call

  • ctx context.Context
  • by string
  • cs []configstore.Change
  • device string

func (*MockConfigService_Expecter) PutObject

func (_e *MockConfigService_Expecter) PutObject(ctx any, by any, kind any, id any, body any) *MockConfigService_PutObject_Call

PutObject is a helper method to define mock.On call

  • ctx context.Context
  • by string
  • kind string
  • id string
  • body map[string]any

func (*MockConfigService_Expecter) PutObjects

PutObjects is a helper method to define mock.On call

  • ctx context.Context
  • by string
  • cs []configstore.Change

func (*MockConfigService_Expecter) PutSettings

PutSettings is a helper method to define mock.On call

  • ctx context.Context
  • by string
  • set map[string]any

type MockConfigService_Export_Call

type MockConfigService_Export_Call struct {
	*mock.Call
}

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

func (*MockConfigService_Export_Call) Return

func (*MockConfigService_Export_Call) Run

func (*MockConfigService_Export_Call) RunAndReturn

type MockConfigService_Object_Call

type MockConfigService_Object_Call struct {
	*mock.Call
}

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

func (*MockConfigService_Object_Call) Return

func (*MockConfigService_Object_Call) Run

func (*MockConfigService_Object_Call) RunAndReturn

type MockConfigService_Overview_Call

type MockConfigService_Overview_Call struct {
	*mock.Call
}

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

func (*MockConfigService_Overview_Call) Return

func (*MockConfigService_Overview_Call) Run

func (*MockConfigService_Overview_Call) RunAndReturn

type MockConfigService_Probe_Call

type MockConfigService_Probe_Call struct {
	*mock.Call
}

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

func (*MockConfigService_Probe_Call) Return

func (*MockConfigService_Probe_Call) Run

func (*MockConfigService_Probe_Call) RunAndReturn

type MockConfigService_PutObject_Call

type MockConfigService_PutObject_Call struct {
	*mock.Call
}

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

func (*MockConfigService_PutObject_Call) Return

func (*MockConfigService_PutObject_Call) Run

func (*MockConfigService_PutObject_Call) RunAndReturn

type MockConfigService_PutObjects_Call

type MockConfigService_PutObjects_Call struct {
	*mock.Call
}

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

func (*MockConfigService_PutObjects_Call) Return

func (*MockConfigService_PutObjects_Call) Run

func (*MockConfigService_PutObjects_Call) RunAndReturn

type MockConfigService_PutSettings_Call

type MockConfigService_PutSettings_Call struct {
	*mock.Call
}

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

func (*MockConfigService_PutSettings_Call) Return

func (*MockConfigService_PutSettings_Call) Run

func (*MockConfigService_PutSettings_Call) RunAndReturn

type MockDevicesService

type MockDevicesService struct {
	mock.Mock
}

MockDevicesService is an autogenerated mock type for the DevicesService type

func NewMockDevicesService

func NewMockDevicesService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockDevicesService

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

func (*MockDevicesService) Get

Get provides a mock function for the type MockDevicesService

func (*MockDevicesService) List

func (_mock *MockDevicesService) List() []service.DeviceInfo

List provides a mock function for the type MockDevicesService

func (*MockDevicesService) Overview

func (_mock *MockDevicesService) Overview(ctx context.Context, from time.Time, to time.Time) ([]service.DeviceStatus, error)

Overview provides a mock function for the type MockDevicesService

func (*MockDevicesService) Status

func (_mock *MockDevicesService) Status(ctx context.Context, id string, from time.Time, to time.Time) ([]service.StatusEventModel, error)

Status provides a mock function for the type MockDevicesService

type MockDevicesService_Expecter

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

func (*MockDevicesService_Expecter) Get

Get is a helper method to define mock.On call

  • id string

func (*MockDevicesService_Expecter) List

List is a helper method to define mock.On call

func (*MockDevicesService_Expecter) Overview

Overview is a helper method to define mock.On call

  • ctx context.Context
  • from time.Time
  • to time.Time

func (*MockDevicesService_Expecter) Status

Status is a helper method to define mock.On call

  • ctx context.Context
  • id string
  • from time.Time
  • to time.Time

type MockDevicesService_Get_Call

type MockDevicesService_Get_Call struct {
	*mock.Call
}

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

func (*MockDevicesService_Get_Call) Return

func (*MockDevicesService_Get_Call) Run

func (*MockDevicesService_Get_Call) RunAndReturn

type MockDevicesService_List_Call

type MockDevicesService_List_Call struct {
	*mock.Call
}

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

func (*MockDevicesService_List_Call) Return

func (*MockDevicesService_List_Call) Run

func (*MockDevicesService_List_Call) RunAndReturn

type MockDevicesService_Overview_Call

type MockDevicesService_Overview_Call struct {
	*mock.Call
}

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

func (*MockDevicesService_Overview_Call) Return

func (*MockDevicesService_Overview_Call) Run

func (*MockDevicesService_Overview_Call) RunAndReturn

type MockDevicesService_Status_Call

type MockDevicesService_Status_Call struct {
	*mock.Call
}

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

func (*MockDevicesService_Status_Call) Return

func (*MockDevicesService_Status_Call) Run

func (*MockDevicesService_Status_Call) RunAndReturn

type MockEnergyService

type MockEnergyService struct {
	mock.Mock
}

MockEnergyService is an autogenerated mock type for the EnergyService type

func NewMockEnergyService

func NewMockEnergyService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockEnergyService

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

func (*MockEnergyService) Series

func (_mock *MockEnergyService) Series(ctx context.Context, names []string, level string, from time.Time, to time.Time) (service.EnergyModel, error)

Series provides a mock function for the type MockEnergyService

type MockEnergyService_Expecter

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

func (*MockEnergyService_Expecter) Series

func (_e *MockEnergyService_Expecter) Series(ctx any, names any, level any, from any, to any) *MockEnergyService_Series_Call

Series is a helper method to define mock.On call

  • ctx context.Context
  • names []string
  • level string
  • from time.Time
  • to time.Time

type MockEnergyService_Series_Call

type MockEnergyService_Series_Call struct {
	*mock.Call
}

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

func (*MockEnergyService_Series_Call) Return

func (*MockEnergyService_Series_Call) Run

func (_c *MockEnergyService_Series_Call) Run(run func(ctx context.Context, names []string, level string, from time.Time, to time.Time)) *MockEnergyService_Series_Call

func (*MockEnergyService_Series_Call) RunAndReturn

func (_c *MockEnergyService_Series_Call) RunAndReturn(run func(ctx context.Context, names []string, level string, from time.Time, to time.Time) (service.EnergyModel, error)) *MockEnergyService_Series_Call

type MockGaugeService

type MockGaugeService struct {
	mock.Mock
}

MockGaugeService is an autogenerated mock type for the GaugeService type

func NewMockGaugeService

func NewMockGaugeService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockGaugeService

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

func (*MockGaugeService) Series

func (_mock *MockGaugeService) Series(ctx context.Context, names []string, from time.Time, to time.Time) (service.GaugeModel, error)

Series provides a mock function for the type MockGaugeService

type MockGaugeService_Expecter

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

func (*MockGaugeService_Expecter) Series

func (_e *MockGaugeService_Expecter) Series(ctx any, names any, from any, to any) *MockGaugeService_Series_Call

Series is a helper method to define mock.On call

  • ctx context.Context
  • names []string
  • from time.Time
  • to time.Time

type MockGaugeService_Series_Call

type MockGaugeService_Series_Call struct {
	*mock.Call
}

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

func (*MockGaugeService_Series_Call) Return

func (*MockGaugeService_Series_Call) Run

func (*MockGaugeService_Series_Call) RunAndReturn

type MockHealthService

type MockHealthService struct {
	mock.Mock
}

MockHealthService is an autogenerated mock type for the HealthService type

func NewMockHealthService

func NewMockHealthService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockHealthService

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

func (*MockHealthService) Report

func (_mock *MockHealthService) Report() (service.HealthReport, int)

Report provides a mock function for the type MockHealthService

type MockHealthService_Expecter

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

func (*MockHealthService_Expecter) Report

Report is a helper method to define mock.On call

type MockHealthService_Report_Call

type MockHealthService_Report_Call struct {
	*mock.Call
}

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

func (*MockHealthService_Report_Call) Return

func (*MockHealthService_Report_Call) Run

func (*MockHealthService_Report_Call) RunAndReturn

type MockProfileLister

type MockProfileLister struct {
	mock.Mock
}

MockProfileLister is an autogenerated mock type for the ProfileLister type

func NewMockProfileLister

func NewMockProfileLister(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockProfileLister

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

func (*MockProfileLister) List

func (_mock *MockProfileLister) List() []service.ProfileInfo

List provides a mock function for the type MockProfileLister

type MockProfileLister_Expecter

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

func (*MockProfileLister_Expecter) List

List is a helper method to define mock.On call

type MockProfileLister_List_Call

type MockProfileLister_List_Call struct {
	*mock.Call
}

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

func (*MockProfileLister_List_Call) Return

func (*MockProfileLister_List_Call) Run

func (*MockProfileLister_List_Call) RunAndReturn

type MockReportService

type MockReportService struct {
	mock.Mock
}

MockReportService is an autogenerated mock type for the ReportService type

func NewMockReportService

func NewMockReportService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockReportService

NewMockReportService creates a new instance of MockReportService. 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 (*MockReportService) Build

Build provides a mock function for the type MockReportService

func (*MockReportService) EXPECT

type MockReportService_Build_Call

type MockReportService_Build_Call struct {
	*mock.Call
}

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

func (*MockReportService_Build_Call) Return

func (*MockReportService_Build_Call) Run

func (*MockReportService_Build_Call) RunAndReturn

type MockReportService_Expecter

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

func (*MockReportService_Expecter) Build

Build is a helper method to define mock.On call

  • ctx context.Context
  • q service.ReportQuery

type MockSiteService

type MockSiteService struct {
	mock.Mock
}

MockSiteService is an autogenerated mock type for the SiteService type

func NewMockSiteService

func NewMockSiteService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockSiteService

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

func (*MockSiteService) Model

func (_mock *MockSiteService) Model(ctx context.Context) (service.SiteModel, error)

Model provides a mock function for the type MockSiteService

type MockSiteService_Expecter

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

func (*MockSiteService_Expecter) Model

Model is a helper method to define mock.On call

  • ctx context.Context

type MockSiteService_Model_Call

type MockSiteService_Model_Call struct {
	*mock.Call
}

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

func (*MockSiteService_Model_Call) Return

func (*MockSiteService_Model_Call) Run

func (*MockSiteService_Model_Call) RunAndReturn

Jump to

Keyboard shortcuts

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