testutils

package
v0.0.0-...-bc12874 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2024 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Overview

Package vcsinfo/testutils contains a set of tests to test vcsinfo.VCS implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitTempRepo

func InitTempRepo(t sktest.TestingT) (string, func())

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

func TestBranchInfo(ctx context.Context, t require.TestingT, vcs vcsinfo.VCS, branches []string)

func TestByIndex

func TestByIndex(ctx context.Context, t sktest.TestingT, vcs vcsinfo.VCS)

func TestDisplay

func TestDisplay(ctx context.Context, t sktest.TestingT, vcs vcsinfo.VCS)

func TestFrom

func TestFrom(_ context.Context, t sktest.TestingT, vcs vcsinfo.VCS)

func TestIndexOf

func TestIndexOf(ctx context.Context, t sktest.TestingT, vcs vcsinfo.VCS)

func TestLastNIndex

func TestLastNIndex(_ context.Context, t sktest.TestingT, vcs vcsinfo.VCS)

func TestRange

func TestRange(_ context.Context, t sktest.TestingT, vcs vcsinfo.VCS)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL