# README
Mocks
The mocks
package contains mock objects used for testing.
They have been generated with mockery
.
There is a scripts/regenerate_mocks.sh
script which can be executed to regenerate most mocks when required (interface change).
However, there is an exception:
Interfaces in another repository (e.g. avalanchego
) seem to pose problems to mockery
. We get
outside main module or its selected dependencies
trying to generate them via script.
Those should probably need to be regenerated and pasted here manually when required.
At this point this affects:
- InfoClient
- PClient
# Functions
NewBinaryChecker creates a new instance of BinaryChecker.
NewClient creates a new instance of Client.
NewDownloader creates a new instance of Downloader.
NewInfoClient creates a new instance of InfoClient.
NewInstaller creates a new instance of Installer.
NewPClient creates a new instance of PClient.
NewPluginBinaryDownloader creates a new instance of PluginBinaryDownloader.
NewProcessChecker creates a new instance of ProcessChecker.
NewPrompter creates a new instance of Prompter.
NewPublisher creates a new instance of Publisher.
NewStatusChecker creates a new instance of StatusChecker.
# Structs
BinaryChecker is an autogenerated mock type for the BinaryChecker type.
Client is an autogenerated mock type for the Client type.
Downloader is an autogenerated mock type for the Downloader type.
InfoClient is an autogenerated mock type for the Client type.
Installer is an autogenerated mock type for the Installer type.
PClient is an autogenerated mock type for the Client type.
PluginBinaryDownloader is an autogenerated mock type for the PluginBinaryDownloader type.
ProcessChecker is an autogenerated mock type for the ProcessChecker type.
Prompter is an autogenerated mock type for the Prompter type.
Publisher is an autogenerated mock type for the Publisher type.
StatusChecker is an autogenerated mock type for the StatusChecker type.