# README
tstdata
import "github.com/coralproject/shelf/tstdata"
Overview
Index
- Constants
- func Docs() ([]map[string]interface{}, error)
- func Drop(db *db.DB)
- func Generate(db *db.DB) error
Package files
Constants
const CollectionExecTest = "test_xenia_data"
CollectionExecTest contains the name of the collection that is going to store the xenia test data.
func Docs
func Docs() ([]map[string]interface{}, error)
Docs reads the fixture and returns the documents.
func Drop
func Drop(db *db.DB)
Drop drops the temp collection.
func Generate
func Generate(db *db.DB) error
Generate creates a temp collection with data that can be used for testing things.
Generated by godoc2md
# Constants
CollectionExecTest contains the name of the collection that is going to store the xenia test data.