sqlboiler/cmds/sqlboiler_test.go
Patrick O'brien 25fa09cf93 Added initTemplates, moved tpls folder
* Moved all template functions to shared
2016-02-29 13:30:54 +10:00

14 lines
328 B
Go

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)
}
}