test

package
Version: v0.0.0-...-e3fd340 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

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 Travis, and ensures that it's using the correct branch.

func MakeTestLogger

func MakeTestLogger(t *testing.T) *zap.SugaredLogger

MakeTestLogger creates a logger than uses zaptest.

func MatchError

func MatchError(t *testing.T, s string, e error) bool

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.

Jump to

Keyboard shortcuts

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