testutil

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2023 License: Apache-2.0, BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmptyReposInfo = &ReposInfo{}

Functions

This section is empty.

Types

type ReposInfo

type ReposInfo struct {
	// contains filtered or unexported fields
}

func (*ReposInfo) ResolveCommitIndex

func (ri *ReposInfo) ResolveCommitIndex(repoRef string, index int) (string, bool)

func (*ReposInfo) ResolveRepoRef

func (ri *ReposInfo) ResolveRepoRef(repoRef string) (string, bool)

type TestGitRepo

type TestGitRepo struct {
	T *testing.T

	// RepoDirectory is the temp directory of the git repo
	RepoDirectory string

	// DatasetDirectory is the directory of the testdata files
	DatasetDirectory string

	// RepoName is the name of the repository
	RepoName string

	// Commits keeps track of the commit shas for the changes
	// to the repo.
	Commits []string
}

TestGitRepo manages a local git repository for testing

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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