test

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCommit

func AddCommit(t *testing.T, r *git.Repository, msg string) *object.Commit

func CaptureStd

func CaptureStd(t *testing.T, std *os.File) (f *os.File, reset func())

func LastTagFrom

func LastTagFrom(r *git.Repository) (*plumbing.Reference, error)

func SetUpRepo

func SetUpRepo() (r *git.Repository, teardown func(), err error)

func StageNewFile

func StageNewFile(r *git.Repository) error

func WriteGitHook

func WriteGitHook(t *testing.T, hook string, content string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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