projects
/
kraftakt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b74f4cd
)
Add test that is parsing templates and complains about syntax errors.
author
Florian Forster
<ff@octo.it>
Tue, 30 Jan 2018 08:58:13 +0000
(09:58 +0100)
committer
Florian Forster
<ff@octo.it>
Tue, 30 Jan 2018 08:58:13 +0000
(09:58 +0100)
kraftakt_test.go
[new file with mode: 0644]
patch
|
blob
diff --git a/kraftakt_test.go
b/kraftakt_test.go
new file mode 100644
(file)
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)
+ }
+}