internal_test

package
v0.30.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoCommit

func DoCommit(t *testing.T, r *gogit.Repository, file string)

func DoCommitWithMessage

func DoCommitWithMessage(t *testing.T, r *gogit.Repository, file, message string)

func NewVersionT

func NewVersionT(t *testing.T, version string) *semver.Version

func PersistentRepository

func PersistentRepository(t *testing.T) (*gogit.Repository, string)

func PrintTags

func PrintTags(t *testing.T, r *gogit.Repository)

Types

type TestRepo

type TestRepo struct {
	Repo *gogit.Repository
	// contains filtered or unexported fields
}

func NewEmptyTestRepo

func NewEmptyTestRepo(t *testing.T) TestRepo

func NewTestRepo

func NewTestRepo(t *testing.T) TestRepo

func (*TestRepo) BranchExists

func (t *TestRepo) BranchExists(branchName string) bool

func (*TestRepo) CreateTag

func (t *TestRepo) CreateTag(name string, hash plumbing.Hash) *plumbing.Reference

func (*TestRepo) DoCommit

func (t *TestRepo) DoCommit(file string)

func (*TestRepo) Head

func (t *TestRepo) Head() *plumbing.Reference

func (*TestRepo) Worktree

func (t *TestRepo) Worktree() *gogit.Worktree

Jump to

Keyboard shortcuts

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