Finished most of the stripping

This commit is contained in:
Patrick O'brien 2016-03-28 01:03:14 +10:00
commit 27cafdd2fb
15 changed files with 401 additions and 723 deletions

View file

@ -11,6 +11,8 @@ import (
"github.com/pobri19/sqlboiler/dbdrivers"
)
var cmdData *CmdData
func init() {
cmdData = &CmdData{
Tables: []dbdrivers.Table{
@ -46,7 +48,7 @@ func TestTemplates(t *testing.T) {
// Initialize the templates
var err error
templates, err = initTemplates("templates")
cmdData.Templates, err = loadTemplates("templates")
if err != nil {
t.Fatalf("Unable to initialize templates: %s", err)
}
@ -57,7 +59,7 @@ func TestTemplates(t *testing.T) {
}
defer os.RemoveAll(cmdData.OutFolder)
boilRun(sqlBoilerCommands["boil"], []string{})
cmdData.SQLBoilerRun(nil, []string{})
tplFile := cmdData.OutFolder + "/templates_test.go"
tplTestHandle, err := os.Create(tplFile)