mocks

package
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	api.Client
}

type Config

type Config interface {
	cmdutil.Config
}

type Factory

type Factory interface {
	cmdutil.Factory
}

type MockClient

type MockClient struct {
	mock.Mock
}

MockClient is an autogenerated mock type for the Client type

func NewMockClient

func NewMockClient(t mockConstructorTestingTNewMockClient) *MockClient

NewMockClient creates a new instance of MockClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*MockClient) AddClient

func (_m *MockClient) AddClient(_a0 api.AddClientParam) (dto.Client, error)

AddClient provides a mock function with given fields: _a0

func (*MockClient) AddProject

func (_m *MockClient) AddProject(_a0 api.AddProjectParam) (dto.Project, error)

AddProject provides a mock function with given fields: _a0

func (*MockClient) AddTask

func (_m *MockClient) AddTask(_a0 api.AddTaskParam) (dto.Task, error)

AddTask provides a mock function with given fields: _a0

func (*MockClient) ChangeInvoiced

func (_m *MockClient) ChangeInvoiced(_a0 api.ChangeInvoicedParam) error

ChangeInvoiced provides a mock function with given fields: _a0

func (*MockClient) CreateTimeEntry

func (_m *MockClient) CreateTimeEntry(_a0 api.CreateTimeEntryParam) (dto.TimeEntryImpl, error)

CreateTimeEntry provides a mock function with given fields: _a0

func (*MockClient) DeleteTask

func (_m *MockClient) DeleteTask(_a0 api.DeleteTaskParam) (dto.Task, error)

DeleteTask provides a mock function with given fields: _a0

func (*MockClient) DeleteTimeEntry

func (_m *MockClient) DeleteTimeEntry(_a0 api.DeleteTimeEntryParam) error

DeleteTimeEntry provides a mock function with given fields: _a0

func (*MockClient) GetClients

func (_m *MockClient) GetClients(_a0 api.GetClientsParam) ([]dto.Client, error)

GetClients provides a mock function with given fields: _a0

func (*MockClient) GetHydratedTimeEntry

func (_m *MockClient) GetHydratedTimeEntry(_a0 api.GetTimeEntryParam) (*dto.TimeEntry, error)

GetHydratedTimeEntry provides a mock function with given fields: _a0

func (*MockClient) GetHydratedTimeEntryInProgress

func (_m *MockClient) GetHydratedTimeEntryInProgress(_a0 api.GetTimeEntryInProgressParam) (*dto.TimeEntry, error)

GetHydratedTimeEntryInProgress provides a mock function with given fields: _a0

func (*MockClient) GetMe

func (_m *MockClient) GetMe() (dto.User, error)

GetMe provides a mock function with given fields:

func (*MockClient) GetProject

func (_m *MockClient) GetProject(_a0 api.GetProjectParam) (*dto.Project, error)

GetProject provides a mock function with given fields: _a0

func (*MockClient) GetProjects

func (_m *MockClient) GetProjects(_a0 api.GetProjectsParam) ([]dto.Project, error)

GetProjects provides a mock function with given fields: _a0

func (*MockClient) GetTag

func (_m *MockClient) GetTag(_a0 api.GetTagParam) (*dto.Tag, error)

GetTag provides a mock function with given fields: _a0

func (*MockClient) GetTags

func (_m *MockClient) GetTags(_a0 api.GetTagsParam) ([]dto.Tag, error)

GetTags provides a mock function with given fields: _a0

func (*MockClient) GetTask

func (_m *MockClient) GetTask(_a0 api.GetTaskParam) (dto.Task, error)

GetTask provides a mock function with given fields: _a0

func (*MockClient) GetTasks

func (_m *MockClient) GetTasks(_a0 api.GetTasksParam) ([]dto.Task, error)

GetTasks provides a mock function with given fields: _a0

func (*MockClient) GetTimeEntry

func (_m *MockClient) GetTimeEntry(_a0 api.GetTimeEntryParam) (*dto.TimeEntryImpl, error)

GetTimeEntry provides a mock function with given fields: _a0

func (*MockClient) GetTimeEntryInProgress

func (_m *MockClient) GetTimeEntryInProgress(_a0 api.GetTimeEntryInProgressParam) (*dto.TimeEntryImpl, error)

GetTimeEntryInProgress provides a mock function with given fields: _a0

func (*MockClient) GetUser

func (_m *MockClient) GetUser(_a0 api.GetUser) (dto.User, error)

GetUser provides a mock function with given fields: _a0

func (*MockClient) GetUserTimeEntries

func (_m *MockClient) GetUserTimeEntries(_a0 api.GetUserTimeEntriesParam) ([]dto.TimeEntryImpl, error)

GetUserTimeEntries provides a mock function with given fields: _a0

func (*MockClient) GetUsersHydratedTimeEntries

func (_m *MockClient) GetUsersHydratedTimeEntries(_a0 api.GetUserTimeEntriesParam) ([]dto.TimeEntry, error)

GetUsersHydratedTimeEntries provides a mock function with given fields: _a0

func (*MockClient) GetWorkspace

func (_m *MockClient) GetWorkspace(_a0 api.GetWorkspace) (dto.Workspace, error)

GetWorkspace provides a mock function with given fields: _a0

func (*MockClient) GetWorkspaces

func (_m *MockClient) GetWorkspaces(_a0 api.GetWorkspaces) ([]dto.Workspace, error)

GetWorkspaces provides a mock function with given fields: _a0

func (*MockClient) Log

func (_m *MockClient) Log(_a0 api.LogParam) ([]dto.TimeEntry, error)

Log provides a mock function with given fields: _a0

func (*MockClient) LogRange

func (_m *MockClient) LogRange(_a0 api.LogRangeParam) ([]dto.TimeEntry, error)

LogRange provides a mock function with given fields: _a0

func (*MockClient) Out

func (_m *MockClient) Out(_a0 api.OutParam) error

Out provides a mock function with given fields: _a0

func (*MockClient) SetDebugLogger

func (_m *MockClient) SetDebugLogger(logger api.Logger) api.Client

SetDebugLogger provides a mock function with given fields: logger

func (*MockClient) SetInfoLogger

func (_m *MockClient) SetInfoLogger(logger api.Logger) api.Client

SetInfoLogger provides a mock function with given fields: logger

func (*MockClient) UpdateProject added in v0.40.0

func (_m *MockClient) UpdateProject(_a0 api.UpdateProjectParam) (dto.Project, error)

UpdateProject provides a mock function with given fields: _a0

func (*MockClient) UpdateTask

func (_m *MockClient) UpdateTask(_a0 api.UpdateTaskParam) (dto.Task, error)

UpdateTask provides a mock function with given fields: _a0

func (*MockClient) UpdateTimeEntry

func (_m *MockClient) UpdateTimeEntry(_a0 api.UpdateTimeEntryParam) (dto.TimeEntryImpl, error)

UpdateTimeEntry provides a mock function with given fields: _a0

func (*MockClient) WorkspaceUsers

func (_m *MockClient) WorkspaceUsers(_a0 api.WorkspaceUsersParam) ([]dto.User, error)

WorkspaceUsers provides a mock function with given fields: _a0

type MockConfig

type MockConfig struct {
	mock.Mock
}

MockConfig is an autogenerated mock type for the Config type

func NewMockConfig

func NewMockConfig(t mockConstructorTestingTNewMockConfig) *MockConfig

NewMockConfig creates a new instance of MockConfig. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*MockConfig) All

func (_m *MockConfig) All() map[string]interface{}

All provides a mock function with given fields:

func (*MockConfig) Get

func (_m *MockConfig) Get(_a0 string) interface{}

Get provides a mock function with given fields: _a0

func (*MockConfig) GetBool

func (_m *MockConfig) GetBool(_a0 string) bool

GetBool provides a mock function with given fields: _a0

func (*MockConfig) GetInt

func (_m *MockConfig) GetInt(_a0 string) int

GetInt provides a mock function with given fields: _a0

func (*MockConfig) GetString

func (_m *MockConfig) GetString(_a0 string) string

GetString provides a mock function with given fields: _a0

func (*MockConfig) GetStringSlice

func (_m *MockConfig) GetStringSlice(_a0 string) []string

GetStringSlice provides a mock function with given fields: _a0

func (*MockConfig) GetWorkWeekdays

func (_m *MockConfig) GetWorkWeekdays() []string

GetWorkWeekdays provides a mock function with given fields:

func (*MockConfig) IsAllowNameForID

func (_m *MockConfig) IsAllowNameForID() bool

IsAllowNameForID provides a mock function with given fields:

func (*MockConfig) IsDebuging

func (_m *MockConfig) IsDebuging() bool

IsDebuging provides a mock function with given fields:

func (*MockConfig) IsInteractive

func (_m *MockConfig) IsInteractive() bool

IsInteractive provides a mock function with given fields:

func (*MockConfig) LogLevel

func (_m *MockConfig) LogLevel() string

LogLevel provides a mock function with given fields:

func (*MockConfig) Save

func (_m *MockConfig) Save() error

Save provides a mock function with given fields:

func (*MockConfig) SetBool

func (_m *MockConfig) SetBool(_a0 string, _a1 bool)

SetBool provides a mock function with given fields: _a0, _a1

func (*MockConfig) SetInt

func (_m *MockConfig) SetInt(_a0 string, _a1 int)

SetInt provides a mock function with given fields: _a0, _a1

func (*MockConfig) SetString

func (_m *MockConfig) SetString(_a0 string, _a1 string)

SetString provides a mock function with given fields: _a0, _a1

func (*MockConfig) SetStringSlice

func (_m *MockConfig) SetStringSlice(_a0 string, _a1 []string)

SetStringSlice provides a mock function with given fields: _a0, _a1

type MockFactory

type MockFactory struct {
	mock.Mock
}

MockFactory is an autogenerated mock type for the Factory type

func NewMockFactory

func NewMockFactory(t mockConstructorTestingTNewMockFactory) *MockFactory

NewMockFactory creates a new instance of MockFactory. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*MockFactory) Client

func (_m *MockFactory) Client() (api.Client, error)

Client provides a mock function with given fields:

func (*MockFactory) Config

func (_m *MockFactory) Config() cmdutil.Config

Config provides a mock function with given fields:

func (*MockFactory) GetUserID

func (_m *MockFactory) GetUserID() (string, error)

GetUserID provides a mock function with given fields:

func (*MockFactory) GetWorkspace

func (_m *MockFactory) GetWorkspace() (dto.Workspace, error)

GetWorkspace provides a mock function with given fields:

func (*MockFactory) GetWorkspaceID

func (_m *MockFactory) GetWorkspaceID() (string, error)

GetWorkspaceID provides a mock function with given fields:

func (*MockFactory) Version

func (_m *MockFactory) Version() cmdutil.Version

Version provides a mock function with given fields:

Jump to

Keyboard shortcuts

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