MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / scroll_content_equals_viewport

Function scroll_content_equals_viewport

crates/openshell-tui/src/app.rs:2854–2858  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2852
2853 #[test]
2854 fn scroll_content_equals_viewport() {
2855 // Exactly 10 lines in a 10-line viewport: max scroll is 0.
2856 assert_eq!(clamped_scroll(0, 1, 10, 10), 0);
2857 assert_eq!(clamped_scroll(0, -1, 10, 10), 0);
2858 }
2859
2860 #[test]
2861 fn scroll_down_one() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected