Add singles imports to TestTemplates
* Add byte slice comparison helper to test templates
This commit is contained in:
parent
98e0b1f2ad
commit
3f289848ce
5 changed files with 30 additions and 4 deletions
|
@ -122,6 +122,15 @@ func TestTemplates(t *testing.T) {
|
|||
t.Fatalf("Unable to initialize templates: %s", err)
|
||||
}
|
||||
|
||||
cmdData.SingleTestTemplates, err = loadTemplates("templates_test/singles")
|
||||
if err != nil {
|
||||
t.Fatalf("Unable to initialize single test templates: %s", err)
|
||||
}
|
||||
|
||||
if len(cmdData.SingleTestTemplates) == 0 {
|
||||
t.Errorf("SingleTestTemplates is empty.")
|
||||
}
|
||||
|
||||
cmdData.OutFolder, err = ioutil.TempDir("", "templates")
|
||||
if err != nil {
|
||||
t.Fatalf("Unable to create tempdir: %s", err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue