tstdata

package
v0.4.8 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

README

tstdata

import "github.com/coralproject/shelf/tstdata"

Overview

Index

Package files

tstdata.go

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

Documentation

Index

Constants

View Source
const CollectionExecTest = "test_xenia_data"

CollectionExecTest contains the name of the collection that is going to store the xenia test data.

Variables

This section is empty.

Functions

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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