(t *testing.T)
| 92 | } |
| 93 | |
| 94 | func TestRender_LoadFromData(t *testing.T) { |
| 95 | r := New() |
| 96 | templateData := [][]byte{ |
| 97 | []byte(`{{define "mytemplate"}}test{{end}}`), |
| 98 | } |
| 99 | |
| 100 | // Should not panic |
| 101 | r.LoadFromData(templateData) |
| 102 | |
| 103 | if r.tmpls == nil { |
| 104 | t.Error("LoadFromData() resulted in nil templates") |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | func TestRender_Header(t *testing.T) { |
| 109 | r := New() |
nothing calls this directly
no test coverage detected