Documentation ¶
Overview ¶
Package vcsinfo/testutils contains a set of tests to test vcsinfo.VCS implementations.
Index ¶
- func InitTempRepo(t sktest.TestingT) (string, func())
- func TestBranchInfo(t require.TestingT, vcs vcsinfo.VCS, branches []string)
- func TestByIndex(t sktest.TestingT, vcs vcsinfo.VCS)
- func TestDisplay(t sktest.TestingT, vcs vcsinfo.VCS)
- func TestFrom(t sktest.TestingT, vcs vcsinfo.VCS)
- func TestIndexOf(t sktest.TestingT, vcs vcsinfo.VCS)
- func TestLastNIndex(t sktest.TestingT, vcs vcsinfo.VCS)
- func TestRange(t sktest.TestingT, vcs vcsinfo.VCS)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitTempRepo ¶
InitTempRepo creates a temporary git repository from ./testdata/testrepo.zip. It returns the path to the repo directory and a cleanup function that should be called in a deferred.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.