Added initTemplates, moved tpls folder
* Moved all template functions to shared
This commit is contained in:
parent
403951940f
commit
25fa09cf93
9 changed files with 93 additions and 47 deletions
14
cmds/sqlboiler_test.go
Normal file
14
cmds/sqlboiler_test.go
Normal 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)
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue