Documentation
¶
Index ¶
- func Clone(t *testing.T, ts *httptest.Server, repo, worktree string, opts Options) *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, opts Options) *httptest.Server
- func NewServerWithRepository(t *testing.T, repo, dir string, opts Options) *httptest.Server
- func NewTestServer(t *testing.T, opts Options) *httptest.Server
- func PushTags(t *testing.T, r *git.Repository)
- func SetTag(t *testing.T, r *git.Repository, tag string)
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRemoteBranch ¶
func CreateRemoteBranch(t *testing.T, r *git.Repository, branchName string)
func NewServerWithRepository ¶ added in v0.59.0
func NewTestServer ¶ added in v0.59.0
NewTestServer creates a git server with the local copy of "github.com/aquasecurity/trivy-test-repo". If the test repository doesn't exist, it suggests running 'mage test:unit'.
Types ¶
Click to show internal directories.
Click to hide internal directories.