MCPcopy
hub / github.com/wagoodman/dive / TestFileTreePageDown

Function TestFileTreePageDown

runtime/ui/viewmodel/filetree_test.go:229–248  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

227}
228
229func TestFileTreePageDown(t *testing.T) {
230 vm := initializeTestViewModel(t)
231
232 width, height := 100, 10
233 vm.Setup(0, height)
234 vm.ShowAttributes = true
235 err := vm.Update(nil, width, height)
236 checkError(t, err, "unable to update")
237
238 err = vm.PageDown()
239 checkError(t, err, "unable to page down")
240
241 err = vm.PageDown()
242 checkError(t, err, "unable to page down")
243
244 err = vm.PageDown()
245 checkError(t, err, "unable to page down")
246
247 runTestCase(t, vm, width, height, nil)
248}
249
250func TestFileTreePageUp(t *testing.T) {
251 vm := initializeTestViewModel(t)

Callers

nothing calls this directly

Calls 6

initializeTestViewModelFunction · 0.85
runTestCaseFunction · 0.85
checkErrorFunction · 0.70
SetupMethod · 0.65
UpdateMethod · 0.65
PageDownMethod · 0.45

Tested by

no test coverage detected