Documentation ¶
Overview ¶
Package testlib contains test helpers for goreleaser tests.
Index ¶
- func AssertSkipped(t *testing.T, err error)
- func CheckPath(tb testing.TB, cmd string)
- func GitAdd(tb testing.TB)
- func GitAnnotatedTag(tb testing.TB, tag, message string)
- func GitBranch(tb testing.TB, branch string)
- func GitCheckoutBranch(tb testing.TB, name string)
- func GitCommit(tb testing.TB, msg string)
- func GitInit(tb testing.TB)
- func GitRemoteAdd(tb testing.TB, url string)
- func GitRemoteAddWithName(tb testing.TB, remote, url string)
- func GitTag(tb testing.TB, tag string)
- func Mktmp(tb testing.TB) string
- func RequireTemplateError(tb testing.TB, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertSkipped ¶
AssertSkipped asserts that a pipe was skipped.
func GitAnnotatedTag ¶
GitAnnotatedTag creates an annotated tag.
func GitCheckoutBranch ¶
GitCheckoutBranch allows us to change the active branch that we're using.
func GitRemoteAdd ¶
GitRemoteAdd adds the given url as remote.
func GitRemoteAddWithName ¶
GitRemoteAddWithName adds the given url as remote with given name.
func Mktmp ¶
Mktmp creates a new tempdir, cd into it and provides a back function that cd into the previous directory.
func RequireTemplateError ¶
RequireTemplateError requires thqt an error happens and that it is an template error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.