tests

package
v0.0.0-...-bcdf8a7 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2015 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package tests creates tests files for the given schema

Index

Constants

This section is empty.

Variables

View Source
var MainTestsTemplate = `` /* 990-byte string literal not displayed */

MainTestsTemplate holds the test file template

View Source
var PathForTests = "%smodels/%s_statements.go"
View Source
var TestFuncs = `` /* 1176-byte string literal not displayed */

TestFuncs holds the template for the test functions

View Source
var TestsTemplate = `` /* 734-byte string literal not displayed */

TestsTemplate holds the template for the test files

Functions

func GenerateMainTestFileForModule

func GenerateMainTestFileForModule(s *schema.Schema) ([]byte, error)

GenerateMainTestFileForModule generates the main test file for the module which will be used by other test files

func GenerateTestFuncs

func GenerateTestFuncs(s *schema.Schema) ([]byte, error)

GenerateTestFuncs generates tests functions

func GenerateTests

func GenerateTests(moduleName string, s *schema.Schema) ([]byte, error)

GenerateTests generates the actual tests for the schema

func New

func New() *generator

Types

This section is empty.

Jump to

Keyboard shortcuts

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