Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeCloneOptions ¶
func MakeCloneOptions() *git.CloneOptions
MakeCloneOptions determines if we are running in GitHub, and ensures that it's using the correct branch.
This is because the codebase that the tests run in is not a clone, so we have to clone the upstream.
For local development, you're working on the branch, and we can use that branch correctly.
func MakeTestLogger ¶
func MakeTestLogger(t *testing.T) *zap.SugaredLogger
MakeTestLogger creates a logger than uses zaptest.
func MatchError ¶
MatchError checks errors against a regexp.
Returns true if the string is empty and the error is nil. Returns false if the string is not empty and the error is nil. Otherwise returns the result of a regexp match against the string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.