(t *testing.T)
| 10 | ) |
| 11 | |
| 12 | func TestNew(t *testing.T) { |
| 13 | r := New() |
| 14 | if r == nil { |
| 15 | t.Fatal("New() returned nil") |
| 16 | } |
| 17 | if r.tmpls == nil { |
| 18 | t.Error("New() did not initialize templates") |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | func TestRender_LoadCustomTemplates(t *testing.T) { |
| 23 | tests := []struct { |