Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockCli
- func (m *MockCli) Compile(arg0 context.Context, arg1 *commands0.CompileRequest, arg2, arg3 io.Writer, ...) (*commands0.CompileResponse, error)
- func (m *MockCli) ConnectedBoards(arg0 *commands0.BoardListRequest) ([]*commands0.DetectedPort, error)
- func (m *MockCli) CreateInstance() *commands0.Instance
- func (m *MockCli) EXPECT() *MockCliMockRecorder
- func (m *MockCli) GetPlatforms(arg0 *commands0.PlatformListRequest) ([]*commands0.Platform, error)
- func (m *MockCli) InitSettings(arg0 string)
- func (m *MockCli) LibraryInstall(arg0 context.Context, arg1 *commands0.LibraryInstallRequest, ...) error
- func (m *MockCli) LibraryList(arg0 context.Context, arg1 *commands0.LibraryListRequest) (*commands0.LibraryListResponse, error)
- func (m *MockCli) LibrarySearch(arg0 context.Context, arg1 *commands0.LibrarySearchRequest) (*commands0.LibrarySearchResponse, error)
- func (m *MockCli) LibraryUninstall(arg0 context.Context, arg1 *commands0.LibraryUninstallRequest, ...) error
- func (m *MockCli) PlatformInstall(arg0 context.Context, arg1 *commands0.PlatformInstallRequest, ...) (*commands0.PlatformInstallResponse, error)
- func (m *MockCli) PlatformSearch(arg0 *commands0.PlatformSearchRequest) (*commands0.PlatformSearchResponse, error)
- func (m *MockCli) PlatformUninstall(arg0 context.Context, arg1 *commands0.PlatformUninstallRequest, ...) (*commands0.PlatformUninstallResponse, error)
- func (m *MockCli) UpdateIndex(arg0 context.Context, arg1 *commands0.UpdateIndexRequest, ...) (*commands0.UpdateIndexResponse, error)
- func (m *MockCli) UpdateLibrariesIndex(arg0 context.Context, arg1 *commands0.UpdateLibrariesIndexRequest, ...) error
- func (m *MockCli) Upload(arg0 context.Context, arg1 *commands0.UploadRequest, arg2, arg3 io.Writer) (*commands0.UploadResponse, error)
- func (m *MockCli) Version() string
- type MockCliMockRecorder
- func (mr *MockCliMockRecorder) Compile(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call
- func (mr *MockCliMockRecorder) ConnectedBoards(arg0 interface{}) *gomock.Call
- func (mr *MockCliMockRecorder) CreateInstance() *gomock.Call
- func (mr *MockCliMockRecorder) GetPlatforms(arg0 interface{}) *gomock.Call
- func (mr *MockCliMockRecorder) InitSettings(arg0 interface{}) *gomock.Call
- func (mr *MockCliMockRecorder) LibraryInstall(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockCliMockRecorder) LibraryList(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockCliMockRecorder) LibrarySearch(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockCliMockRecorder) LibraryUninstall(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockCliMockRecorder) PlatformInstall(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockCliMockRecorder) PlatformSearch(arg0 interface{}) *gomock.Call
- func (mr *MockCliMockRecorder) PlatformUninstall(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockCliMockRecorder) UpdateIndex(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockCliMockRecorder) UpdateLibrariesIndex(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockCliMockRecorder) Upload(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockCliMockRecorder) Version() *gomock.Call
- type MockSerialPort
- type MockSerialPortMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCli ¶ added in v2.2.0
type MockCli struct {
// contains filtered or unexported fields
}
MockCli is a mock of Cli interface.
func NewMockCli ¶ added in v2.2.0
func NewMockCli(ctrl *gomock.Controller) *MockCli
NewMockCli creates a new mock instance.
func (*MockCli) Compile ¶ added in v2.2.0
func (m *MockCli) Compile(arg0 context.Context, arg1 *commands0.CompileRequest, arg2, arg3 io.Writer, arg4 commands.TaskProgressCB, arg5 bool) (*commands0.CompileResponse, error)
Compile mocks base method.
func (*MockCli) ConnectedBoards ¶ added in v2.2.0
func (m *MockCli) ConnectedBoards(arg0 *commands0.BoardListRequest) ([]*commands0.DetectedPort, error)
ConnectedBoards mocks base method.
func (*MockCli) CreateInstance ¶ added in v2.3.0
CreateInstance mocks base method.
func (*MockCli) EXPECT ¶ added in v2.2.0
func (m *MockCli) EXPECT() *MockCliMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCli) GetPlatforms ¶ added in v2.2.0
GetPlatforms mocks base method.
func (*MockCli) InitSettings ¶ added in v2.3.0
InitSettings mocks base method.
func (*MockCli) LibraryInstall ¶ added in v2.3.0
func (m *MockCli) LibraryInstall(arg0 context.Context, arg1 *commands0.LibraryInstallRequest, arg2 commands.DownloadProgressCB, arg3 commands.TaskProgressCB) error
LibraryInstall mocks base method.
func (*MockCli) LibraryList ¶ added in v2.3.0
func (m *MockCli) LibraryList(arg0 context.Context, arg1 *commands0.LibraryListRequest) (*commands0.LibraryListResponse, error)
LibraryList mocks base method.
func (*MockCli) LibrarySearch ¶ added in v2.3.0
func (m *MockCli) LibrarySearch(arg0 context.Context, arg1 *commands0.LibrarySearchRequest) (*commands0.LibrarySearchResponse, error)
LibrarySearch mocks base method.
func (*MockCli) LibraryUninstall ¶ added in v2.3.0
func (m *MockCli) LibraryUninstall(arg0 context.Context, arg1 *commands0.LibraryUninstallRequest, arg2 commands.TaskProgressCB) error
LibraryUninstall mocks base method.
func (*MockCli) PlatformInstall ¶ added in v2.3.0
func (m *MockCli) PlatformInstall(arg0 context.Context, arg1 *commands0.PlatformInstallRequest, arg2 commands.DownloadProgressCB, arg3 commands.TaskProgressCB) (*commands0.PlatformInstallResponse, error)
PlatformInstall mocks base method.
func (*MockCli) PlatformSearch ¶ added in v2.3.0
func (m *MockCli) PlatformSearch(arg0 *commands0.PlatformSearchRequest) (*commands0.PlatformSearchResponse, error)
PlatformSearch mocks base method.
func (*MockCli) PlatformUninstall ¶ added in v2.3.0
func (m *MockCli) PlatformUninstall(arg0 context.Context, arg1 *commands0.PlatformUninstallRequest, arg2 func(*commands0.TaskProgress)) (*commands0.PlatformUninstallResponse, error)
PlatformUninstall mocks base method.
func (*MockCli) UpdateIndex ¶ added in v2.3.0
func (m *MockCli) UpdateIndex(arg0 context.Context, arg1 *commands0.UpdateIndexRequest, arg2 commands.DownloadProgressCB) (*commands0.UpdateIndexResponse, error)
UpdateIndex mocks base method.
func (*MockCli) UpdateLibrariesIndex ¶ added in v2.3.0
func (m *MockCli) UpdateLibrariesIndex(arg0 context.Context, arg1 *commands0.UpdateLibrariesIndexRequest, arg2 commands.DownloadProgressCB) error
UpdateLibrariesIndex mocks base method.
type MockCliMockRecorder ¶ added in v2.2.0
type MockCliMockRecorder struct {
// contains filtered or unexported fields
}
MockCliMockRecorder is the mock recorder for MockCli.
func (*MockCliMockRecorder) Compile ¶ added in v2.2.0
func (mr *MockCliMockRecorder) Compile(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call
Compile indicates an expected call of Compile.
func (*MockCliMockRecorder) ConnectedBoards ¶ added in v2.2.0
func (mr *MockCliMockRecorder) ConnectedBoards(arg0 interface{}) *gomock.Call
ConnectedBoards indicates an expected call of ConnectedBoards.
func (*MockCliMockRecorder) CreateInstance ¶ added in v2.3.0
func (mr *MockCliMockRecorder) CreateInstance() *gomock.Call
CreateInstance indicates an expected call of CreateInstance.
func (*MockCliMockRecorder) GetPlatforms ¶ added in v2.2.0
func (mr *MockCliMockRecorder) GetPlatforms(arg0 interface{}) *gomock.Call
GetPlatforms indicates an expected call of GetPlatforms.
func (*MockCliMockRecorder) InitSettings ¶ added in v2.3.0
func (mr *MockCliMockRecorder) InitSettings(arg0 interface{}) *gomock.Call
InitSettings indicates an expected call of InitSettings.
func (*MockCliMockRecorder) LibraryInstall ¶ added in v2.3.0
func (mr *MockCliMockRecorder) LibraryInstall(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
LibraryInstall indicates an expected call of LibraryInstall.
func (*MockCliMockRecorder) LibraryList ¶ added in v2.3.0
func (mr *MockCliMockRecorder) LibraryList(arg0, arg1 interface{}) *gomock.Call
LibraryList indicates an expected call of LibraryList.
func (*MockCliMockRecorder) LibrarySearch ¶ added in v2.3.0
func (mr *MockCliMockRecorder) LibrarySearch(arg0, arg1 interface{}) *gomock.Call
LibrarySearch indicates an expected call of LibrarySearch.
func (*MockCliMockRecorder) LibraryUninstall ¶ added in v2.3.0
func (mr *MockCliMockRecorder) LibraryUninstall(arg0, arg1, arg2 interface{}) *gomock.Call
LibraryUninstall indicates an expected call of LibraryUninstall.
func (*MockCliMockRecorder) PlatformInstall ¶ added in v2.3.0
func (mr *MockCliMockRecorder) PlatformInstall(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
PlatformInstall indicates an expected call of PlatformInstall.
func (*MockCliMockRecorder) PlatformSearch ¶ added in v2.3.0
func (mr *MockCliMockRecorder) PlatformSearch(arg0 interface{}) *gomock.Call
PlatformSearch indicates an expected call of PlatformSearch.
func (*MockCliMockRecorder) PlatformUninstall ¶ added in v2.3.0
func (mr *MockCliMockRecorder) PlatformUninstall(arg0, arg1, arg2 interface{}) *gomock.Call
PlatformUninstall indicates an expected call of PlatformUninstall.
func (*MockCliMockRecorder) UpdateIndex ¶ added in v2.3.0
func (mr *MockCliMockRecorder) UpdateIndex(arg0, arg1, arg2 interface{}) *gomock.Call
UpdateIndex indicates an expected call of UpdateIndex.
func (*MockCliMockRecorder) UpdateLibrariesIndex ¶ added in v2.3.0
func (mr *MockCliMockRecorder) UpdateLibrariesIndex(arg0, arg1, arg2 interface{}) *gomock.Call
UpdateLibrariesIndex indicates an expected call of UpdateLibrariesIndex.
func (*MockCliMockRecorder) Upload ¶ added in v2.2.0
func (mr *MockCliMockRecorder) Upload(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
Upload indicates an expected call of Upload.
func (*MockCliMockRecorder) Version ¶ added in v2.3.0
func (mr *MockCliMockRecorder) Version() *gomock.Call
Version indicates an expected call of Version.
type MockSerialPort ¶
type MockSerialPort struct {
// contains filtered or unexported fields
}
MockSerialPort is a mock of SerialPort interface.
func NewMockSerialPort ¶
func NewMockSerialPort(ctrl *gomock.Controller) *MockSerialPort
NewMockSerialPort creates a new mock instance.
func (*MockSerialPort) Close ¶ added in v2.3.0
func (m *MockSerialPort) Close()
Close mocks base method.
func (*MockSerialPort) EXPECT ¶
func (m *MockSerialPort) EXPECT() *MockSerialPortMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSerialPort) SetTargets ¶ added in v2.3.0
func (m *MockSerialPort) SetTargets(arg0 string, arg1 int)
SetTargets mocks base method.
func (*MockSerialPort) Streaming ¶ added in v2.3.0
func (m *MockSerialPort) Streaming() bool
Streaming mocks base method.
type MockSerialPortMockRecorder ¶
type MockSerialPortMockRecorder struct {
// contains filtered or unexported fields
}
MockSerialPortMockRecorder is the mock recorder for MockSerialPort.
func (*MockSerialPortMockRecorder) Close ¶ added in v2.3.0
func (mr *MockSerialPortMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockSerialPortMockRecorder) SetTargets ¶ added in v2.3.0
func (mr *MockSerialPortMockRecorder) SetTargets(arg0, arg1 interface{}) *gomock.Call
SetTargets indicates an expected call of SetTargets.
func (*MockSerialPortMockRecorder) Streaming ¶ added in v2.3.0
func (mr *MockSerialPortMockRecorder) Streaming() *gomock.Call
Streaming indicates an expected call of Streaming.
func (*MockSerialPortMockRecorder) Watch ¶
func (mr *MockSerialPortMockRecorder) Watch() *gomock.Call
Watch indicates an expected call of Watch.