Documentation ¶
Index ¶
- func FindJSONFilesInDir(t *testing.T, dir string) []string
- func GetIntFromInterface(i interface{}) *int64
- func IsNil(object interface{}) bool
- func RawSliceToInterfaceSlice(elems []bson.Raw) []interface{}
- func RawToInterfaceSlice(doc bson.Raw) []interface{}
- func RequireNil(t *testing.T, variable interface{}, msgFormat string, msgVars ...interface{})
- func RequireNoErrorOnClose(t *testing.T, c io.Closer)
- func RequireNotNil(t *testing.T, variable interface{}, msgFormat string, msgVars ...interface{})
- func VerifyConnStringOptions(t *testing.T, cs connstring.ConnString, options map[string]interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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 IsNil ¶ added in v0.0.9
func IsNil(object interface{}) bool
IsNil returns true if the object is nil
func RawSliceToInterfaceSlice ¶ added in v1.5.0
RawSliceToInterfaceSlice converts a []bson.Raw to []interface{}.
func RawToInterfaceSlice ¶ added in v1.5.0
RawToInterfaceSlice converts a bson.Raw that is internally an array to []interface{}.
func RequireNil ¶ added in v0.0.9
RequireNil throws an error if var is not nil
func RequireNoErrorOnClose ¶
RequireNoErrorOnClose ensures there is not an error when calling Close.
func RequireNotNil ¶ added in v0.0.9
RequireNotNil throws an error if var is nil
func VerifyConnStringOptions ¶
func VerifyConnStringOptions(t *testing.T, cs connstring.ConnString, options map[string]interface{})
VerifyConnStringOptions verifies the options on the connection string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.