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

Function test_nullsafe_simple

src/subject_extraction_tests.rs:83–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

81
82#[test]
83fn test_nullsafe_simple() {
84 let input = "$user?->";
85 let chars: Vec<char> = input.chars().collect();
86 let arrow_pos = input.rfind("->").unwrap();
87 let result = extract_arrow_subject(&chars, arrow_pos);
88 assert_eq!(result, "$user");
89}
90
91// ── Multi-line chain collapse tests ─────────────────────────────
92

Callers

nothing calls this directly

Calls 2

extract_arrow_subjectFunction · 0.85
unwrapMethod · 0.45

Tested by

no test coverage detected