testfixtures

package
v2.3.2 Latest Latest
Warning

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

Go to latest
Published: May 25, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(dsn string, data []string, tplData map[string]interface{}) error

Load loads database test fixtures specified by the "data" param, a list of files and/or directories (paths should be relative to the project's root dir).

It takes as input a Postgres DSN, a list of files/directories leading to the *.yaml files and one more optional param, which accepts a map with data to be used while parsing files looking for template placeholders to be replaced.

Types

This section is empty.

Jump to

Keyboard shortcuts

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