From: Florian Forster Date: Tue, 30 Jan 2018 08:58:13 +0000 (+0100) Subject: Add test that is parsing templates and complains about syntax errors. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=e1d228770e57dd7bbf4c156ec9b3383481fd3b66;p=kraftakt.git Add test that is parsing templates and complains about syntax errors. --- diff --git a/kraftakt_test.go b/kraftakt_test.go new file mode 100644 index 0000000..cff24b7 --- /dev/null +++ b/kraftakt_test.go @@ -0,0 +1,12 @@ +package kraftakt + +import ( + "html/template" + "testing" +) + +func TestTemplates(t *testing.T) { + if _, err := template.ParseGlob("templates/*.html"); err != nil { + t.Errorf(`template.ParseGlob("templates/*.html") = %v`, err) + } +}