tests

package
v1.0.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateDatabaseName added in v1.0.1

func GenerateDatabaseName(testName string) string

GenerateDatabaseName comes up with a valid mongodb database name from a Go test name.

func RequireErrorContains added in v1.0.1

func RequireErrorContains(t *testing.T, err error, substring string, msgAndArgs ...interface{})

RequireErrorContains fails the test when the error doesn't contain the specified substring. This is less fragile than using require.EqualError

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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