MCPcopy
hub / github.com/gofiber/fiber / Test_App_ReloadViews_Error

Function Test_App_ReloadViews_Error

app_test.go:2210–2219  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

2208}
2209
2210func Test_App_ReloadViews_Error(t *testing.T) {
2211 t.Parallel()
2212 wantedErr := errors.New("boom")
2213 view := &countingView{loadErr: wantedErr}
2214 app := New(Config{Views: view})
2215
2216 err := app.ReloadViews()
2217 require.Error(t, err)
2218 require.ErrorIs(t, err, wantedErr)
2219}
2220
2221func Test_App_ReloadViews_BlocksRenderUntilLoadCompletes(t *testing.T) {
2222 t.Parallel()

Callers

nothing calls this directly

Calls 4

ReloadViewsMethod · 0.80
NewFunction · 0.70
NewMethod · 0.65
ErrorMethod · 0.65

Tested by

no test coverage detected