testhelpers

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 17, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindJSONFilesInDir

func FindJSONFilesInDir(t *testing.T, dir string) []string

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

func RequireNoErrorOnClose(t *testing.T, c io.Closer)

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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