MCPcopy Create free account
hub / github.com/PHPantom-dev/phpantom_lsp / trim_whitespace

Function trim_whitespace

src/code_actions/extract_function.rs:2548–2552  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2546
2547 #[test]
2548 fn trim_whitespace() {
2549 let content = " hello world ";
2550 let result = trim_selection(content, 0, content.len());
2551 assert_eq!(result, Some((2, 13)));
2552 }
2553
2554 #[test]
2555 fn trim_empty_rejected() {

Callers

nothing calls this directly

Calls 1

trim_selectionFunction · 0.85

Tested by

no test coverage detected