gittest

package
v0.61.2 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone

func Clone(t *testing.T, ts *httptest.Server, repo, worktree string) *git.Repository

func CommitAll

func CommitAll(t *testing.T, r *git.Repository, msg string)

func CreateRemoteBranch

func CreateRemoteBranch(t *testing.T, r *git.Repository, branchName string)

func NewServer

func NewServer(t *testing.T, repo, dir string) *httptest.Server

func NewServerWithRepository added in v0.61.1

func NewServerWithRepository(t *testing.T, repo, dir string) *httptest.Server

NewServerWithRepository creates a git server with an existing repository

func NewTestServer added in v0.61.1

func NewTestServer(t *testing.T) *httptest.Server

NewTestServer creates a git server with the local copy of "github.com/khulnasoft/tunnel-test-repo". If the test repository doesn't exist, it suggests running 'mage test:unit'.

func PushTags

func PushTags(t *testing.T, r *git.Repository)

func SetTag

func SetTag(t *testing.T, r *git.Repository, tag string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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