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(ctx context.Context, t require.TestingT, vcs vcsinfo.VCS, branches []string)
- func TestByIndex(ctx context.Context, t sktest.TestingT, vcs vcsinfo.VCS)
- func TestDisplay(ctx context.Context, t sktest.TestingT, vcs vcsinfo.VCS)
- func TestFrom(_ context.Context, t sktest.TestingT, vcs vcsinfo.VCS)
- func TestIndexOf(ctx context.Context, t sktest.TestingT, vcs vcsinfo.VCS)
- func TestLastNIndex(_ context.Context, t sktest.TestingT, vcs vcsinfo.VCS)
- func TestRange(_ context.Context, 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.
func TestBranchInfo ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.