package
0.4.8
Repository: https://github.com/coralproject/shelf.git
Documentation: pkg.go.dev

# 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

# Functions

Docs reads the fixture and returns the documents.
Drop drops the temp collection.
Generate creates a temp collection with data that can be used for testing things.

# Constants

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