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 ¶
GenerateMainTestFileForModule generates the main test file for the module which will be used by other test files
func GenerateTestFuncs ¶
GenerateTestFuncs generates tests functions
func GenerateTests ¶
GenerateTests generates the actual tests for the schema
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.