MCPcopy
hub / github.com/cweill/gotests / TestNew

Function TestNew

internal/render/render_test.go:12–20  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

10)
11
12func 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
22func TestRender_LoadCustomTemplates(t *testing.T) {
23 tests := []struct {

Callers

nothing calls this directly

Calls 1

NewFunction · 0.85

Tested by

no test coverage detected