Documentation
¶
Index ¶
- func Clone(t *testing.T, ts *httptest.Server, repo, worktree string) *git.Repository
- func CommitAll(t *testing.T, r *git.Repository, msg string)
- func CreateRemoteBranch(t *testing.T, r *git.Repository, branchName string)
- func NewServer(t *testing.T, repo, dir string) *httptest.Server
- func NewServerWithRepository(t *testing.T, repo, dir string) *httptest.Server
- func NewTestServer(t *testing.T) *httptest.Server
- func PushTags(t *testing.T, r *git.Repository)
- func SetTag(t *testing.T, r *git.Repository, tag string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRemoteBranch ¶
func NewServerWithRepository ¶ added in v0.61.1
NewServerWithRepository creates a git server with an existing repository
func NewTestServer ¶ added in v0.61.1
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'.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.