submissionfix

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

README

submissionfix

import "github.com/coralproject/shelf/internal/ask/form/submission/submissionfix"

Overview

Index

Package files

submissionfix.go

func Add

func Add(context interface{}, db *db.DB, subs []submission.Submission) error

Add inserts forms for testing.

func Get

func Get(fixture string) ([]submission.Submission, error)

Get loads form data based on forms.json.

func Remove

func Remove(context interface{}, db *db.DB, prefix string) error

Remove removes forms in Mongo that match a given pattern.


Generated by godoc2md

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(context interface{}, db *db.DB, subs []submission.Submission) error

Add inserts submissions to the DB for testing.

func GetMany

func GetMany(fileName string) ([]submission.Submission, error)

Get retrieves a submission document from the filesystem for testing.

func Remove

func Remove(context interface{}, db *db.DB, prefix string) error

Remove removes forms in Mongo that match a given pattern.

Types

This section is empty.

Jump to

Keyboard shortcuts

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