testutils

package
v0.0.0-...-33de393 Latest Latest
Warning

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

Go to latest
Published: May 9, 2021 License: BSD-3-Clause Imports: 14 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(t require.TestingT, vcs vcsinfo.VCS, branches []string)

func TestByIndex

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

func TestDisplay

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

func TestFrom

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

func TestIndexOf

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

func TestLastNIndex

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

func TestRange

func TestRange(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