Documentation ¶
Index ¶
- func AssertDirectoryPermissionsEqual(t *testing.T, path string, mode os.FileMode) bool
- func AssertFilePermissionsEqual(t *testing.T, path string, want os.FileMode, got os.FileMode) bool
- func GenerateDatabaseName(testName string) string
- func RequireErrorContains(t *testing.T, err error, substring string, msgAndArgs ...interface{})
- func RequireOutputContains(t *testing.T, output string, substring string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertDirectoryPermissionsEqual ¶
AssertDirectoryPermissionsEqual checks that all files in the specified path match the desired file mode. Uses a glob pattern to match.
func AssertFilePermissionsEqual ¶
RequireErrorContains fails the test when the error doesn't contain AssertFilePermissionsEqual checks that the file permission bits are equal for the specified file.
func GenerateDatabaseName ¶ added in v1.0.1
GenerateDatabaseName comes up with a valid mongodb database name from a Go test name.
func RequireErrorContains ¶ added in v1.0.1
the specified substring. This is less fragile than using require.EqualError
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.