Documentation
¶
Overview ¶
Package repotest contains various test helpers for tests that work with code relying on plugin Git repos and the asdf plugin index
Three main actions:
* Install plugin index repo into asdf (index contains records that point to local plugins defined by this package) * Install plugin into asdf data dir * Create local plugin repo that can be cloned into asdf
Index ¶
- func GeneratePlugin(fixtureName, dir, pluginName string) (string, error)
- func GeneratePluginIndex(asdfDataDir string) (string, error)
- func InstallPlugin(fixtureName, asdfDataDir, pluginName string) (string, error)
- func InstallPluginIndex(asdfDataDir string) error
- func Setup(asdfDataDir string) error
- func WritePluginCallback(pluginDir, callbackName, script string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GeneratePlugin ¶
GeneratePlugin copies in the specified plugin fixture into a test directory and initializes a Git repo for it so it can be installed by asdf.
func GeneratePluginIndex ¶
GeneratePluginIndex generates a mock plugin index Git repo inside the given directory.
func InstallPlugin ¶
InstallPlugin copies in the specified plugin fixture into the asdfDataDir's plugin directory and initializes a Git repo for it so asdf treats it as installed.
func InstallPluginIndex ¶
InstallPluginIndex generates and installs a plugin index Git repo inside of the provided asdf data directory.
func Setup ¶
Setup copies all files into place and initializes all repos for any Go test that needs either plugin repos or the plugin index repo.
func WritePluginCallback ¶
WritePluginCallback is for creating new plugin callbacks on the fly.
Types ¶
This section is empty.