(t *testing.T)
| 2195 | func (*panicRenderView) Render(io.Writer, string, any, ...string) error { panic("panic render") } |
| 2196 | |
| 2197 | func Test_App_ReloadViews_Success(t *testing.T) { |
| 2198 | t.Parallel() |
| 2199 | view := &countingView{} |
| 2200 | app := New(Config{Views: view}) |
| 2201 | initialLoads := view.loads |
| 2202 | |
| 2203 | require.NoError(t, app.ReloadViews()) |
| 2204 | require.Equal(t, initialLoads+1, view.loads) |
| 2205 | |
| 2206 | require.NoError(t, app.ReloadViews()) |
| 2207 | require.Equal(t, initialLoads+2, view.loads) |
| 2208 | } |
| 2209 | |
| 2210 | func Test_App_ReloadViews_Error(t *testing.T) { |
| 2211 | t.Parallel() |
nothing calls this directly
no test coverage detected