(t *testing.T)
| 2208 | } |
| 2209 | |
| 2210 | func 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 | |
| 2221 | func Test_App_ReloadViews_BlocksRenderUntilLoadCompletes(t *testing.T) { |
| 2222 | t.Parallel() |
nothing calls this directly
no test coverage detected