test

package
v0.0.0-...-fa6c17c Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFilesInCommit

func GetFilesInCommit(t *testing.T, commit *object.Commit, base string) map[string][]byte

GetFilesInCommit returns a map of the files committed in the provided commit.

func MakeTempDir

func MakeTempDir(t *testing.T) string

MakeTempDir creates a temporary directory that is automatically cleaned up after the test finishes.

func MakeTempGitRepo

func MakeTempGitRepo(t *testing.T) (string, billy.Filesystem)

MakeTempGitRepo creates and returns a directory that has been initialised as a Git repository, it also returns rooted Filesystem that can be used to interact with the filesystem underneath.

The directory is deleted at the end of the test.

func MakeTempRepository

func MakeTempRepository(t *testing.T) (*git.Repository, string)

MakeTempRepository returns a git.Repository with an initial commit.

The directory is deleted at the end of the test.

Types

This section is empty.

Jump to

Keyboard shortcuts

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