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

Function scroll_empty_content

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

Source from the content-addressed store, hash-verified

2837
2838 #[test]
2839 fn scroll_empty_content() {
2840 // No lines at all: scroll should stay at 0 regardless of delta.
2841 assert_eq!(clamped_scroll(0, 1, 0, 10), 0);
2842 assert_eq!(clamped_scroll(0, -1, 0, 10), 0);
2843 assert_eq!(clamped_scroll(0, 20, 0, 10), 0);
2844 }
2845
2846 #[test]
2847 fn scroll_content_shorter_than_viewport() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected