MCPcopy
hub / github.com/yorukot/superfile / testModelScrollingCore

Function testModelScrollingCore

src/internal/model_layout_test.go:275–286  ·  view source on GitHub ↗
(t *testing.T, m *model)

Source from the content-addressed store, hash-verified

273}
274
275func testModelScrollingCore(t *testing.T, m *model) {
276 for range ScrollDownCount {
277 TeaUpdate(m, tea.KeyPressMsg{Code: tea.KeyDown})
278 }
279 assertLayoutValidity(t, m)
280
281 // Scroll up
282 for range ScrollUpCount {
283 TeaUpdate(m, tea.KeyPressMsg{Code: tea.KeyUp})
284 }
285 assertLayoutValidity(t, m)
286}
287
288func assertLayoutValidity(t *testing.T, m *model) {
289 // Skip for edge conditions where terminal is too small

Callers 1

testModelScrollingFunction · 0.85

Calls 2

TeaUpdateFunction · 0.85
assertLayoutValidityFunction · 0.85

Tested by

no test coverage detected