Added initTemplates, moved tpls folder

* Moved all template functions to shared
This commit is contained in:
Patrick O'brien 2016-02-29 13:30:54 +10:00
commit 25fa09cf93
9 changed files with 93 additions and 47 deletions

14
cmds/sqlboiler_test.go Normal file
View file

@ -0,0 +1,14 @@
package cmds
import "testing"
func TestInitTemplates(t *testing.T) {
templates, err := initTemplates()
if err != nil {
t.Errorf("Unable to init templates: %s", err)
}
if len(templates) < 2 {
t.Errorf("Expected > 2 templates to be loaded from templates folder, only loaded: %d\n\n%#v", len(templates), templates)
}
}