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

Function TestRender_LayoutPartialNotFound

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

Source from the content-addressed store, hash-verified

205}
206
207func TestRender_LayoutPartialNotFound(t *testing.T) {
208 testFS := createTestFS(testFile{"layout.html", `{{partial "invalid.html"}}`})
209
210 if _, err := New(testFS, WithLayout("layout.html")); err == nil {
211 t.Errorf("New() expected error, got nil")
212 }
213}
214
215func TestRender_ViewPartialNotFound(t *testing.T) {
216 testFS := createTestFS(testFile{"view.html", `{{partial "invalid.html"}}`})

Callers

nothing calls this directly

Calls 3

createTestFSFunction · 0.85
NewFunction · 0.85
WithLayoutFunction · 0.85

Tested by

no test coverage detected