integration

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 14, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadCollection

func LoadCollection(t *testing.T, client *interstellar.DatabaseClient, path string) func()

LoadCollection creates a new collection defined by the file 'col.json' in the given path. Then loads all of the documents in docs.json into the given collection

Returns a function that will delete the collection (for cleanup purposes)

func LoadDatabase

func LoadDatabase(t *testing.T, client *interstellar.Client, path string) func()

LoadDatabase creates a new database named after the folder pointed at by `path` Then for each sub-directory, calls 'LoadCollection'

Returns a function that will delete the database (for cleanup purposes)

func LoadDocuments

func LoadDocuments(t *testing.T, client *interstellar.CollectionClient, path string)

LoadDocuments loads all of the documents in the json file 'path' into the given collection

func LoadDocumentsPartitioned

func LoadDocumentsPartitioned(t *testing.T, client *interstellar.CollectionClient, path string)

LoadDocumentsPartitioned loads all of the documents in the json file 'path' into the given collection which have partition keys assigned

func Mark

func Mark(t *testing.T)

Mark sets the test as an integration test which will only run when RUN_INTEGRATION_TESTS=Y

Types

This section is empty.

Jump to

Keyboard shortcuts

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