MCPcopy Create free account
hub / github.com/abiosoft/mold / TestNew_CyclicReferenceError

Function TestNew_CyclicReferenceError

mold_test.go:98–104  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

96}
97
98func TestNew_CyclicReferenceError(t *testing.T) {
99 testFS := createTestFS(testFile{"parse.html", `{{partial "parse.html"}}`})
100
101 if _, err := New(testFS); err == nil {
102 t.Errorf("New() expected error, got nil %v", err)
103 }
104}
105
106func TestNew_Ext(t *testing.T) {
107 testFS := createTestFS(

Callers

nothing calls this directly

Calls 2

createTestFSFunction · 0.85
NewFunction · 0.85

Tested by

no test coverage detected