(t *testing.T)
| 207 | } |
| 208 | |
| 209 | func TestSetHTMLTemplate(t *testing.T) { |
| 210 | tmpl := template.Must(template.New("test").Parse("Hello {{.}}")) |
| 211 | SetHTMLTemplate(tmpl) |
| 212 | |
| 213 | // Verify engine has template set |
| 214 | assert.NotNil(t, engine()) |
| 215 | } |
| 216 | |
| 217 | func TestStaticFile(t *testing.T) { |
| 218 | StaticFile("/static-file", "../testdata/test_file.txt") |
nothing calls this directly
no test coverage detected