Documentation
¶
Index ¶
- func RequiresTool(t *testing.T, tool tools.Tool)
- type MockTool
- func (_m *MockTool) BinaryName() string
- func (_m *MockTool) BinaryPath() string
- func (_m *MockTool) CheckVersion(logger *log.Logger, binaryPath string) error
- func (_m *MockTool) ID() string
- func (_m *MockTool) Install(logger *log.Logger, installPath string) error
- func (_m *MockTool) RequiredVersion() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MockTool ¶
MockTool is an autogenerated mock type for the Tool type
func NewMockTool ¶
NewMockTool creates a new instance of MockTool. 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 NewMockToolNamed ¶
NewMockToolNamed returns a new mocked tool with ID and binary path already configured.
func (*MockTool) BinaryName ¶
BinaryName provides a mock function with no fields
func (*MockTool) BinaryPath ¶
BinaryPath provides a mock function with no fields
func (*MockTool) CheckVersion ¶
CheckVersion provides a mock function with given fields: logger, binaryPath
func (*MockTool) RequiredVersion ¶
RequiredVersion provides a mock function with no fields
Click to show internal directories.
Click to hide internal directories.