package testhelpers
import "go.mongodb.org/mongo-driver/internal/testutil/helpers"
Index ¶
- func FindJSONFilesInDir(t *testing.T, dir string) []string
- func GetIntFromInterface(i interface{}) *int64
- func RequireNoErrorOnClose(t *testing.T, c io.Closer)
- func VerifyConnStringOptions(t *testing.T, cs connstring.ConnString, options map[string]interface{})
Functions ¶
func FindJSONFilesInDir ¶
FindJSONFilesInDir finds the JSON files in a directory.
func GetIntFromInterface ¶
func GetIntFromInterface(i interface{}) *int64
GetIntFromInterface attempts to convert an empty interface value to an integer.
Returns nil if it is not possible.
func RequireNoErrorOnClose ¶
RequireNoErrorOnClose ensures there is not an error when calling Close.
func VerifyConnStringOptions ¶
func VerifyConnStringOptions(t *testing.T, cs connstring.ConnString, options map[string]interface{})
VerifyConnStringOptions verifies the options on the connection string.
Source Files ¶
helpers.go
- Version
- v0.0.8
- Published
- Jun 25, 2018
- Platform
- darwin/amd64
- Imports
- 10 packages
- Last checked
- 2 minutes ago –
Tools for package owners.