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

Function test_simple_variable

src/subject_extraction_tests.rs:74–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72
73#[test]
74fn test_simple_variable() {
75 let input = "$user->";
76 let chars: Vec<char> = input.chars().collect();
77 let arrow_pos = input.rfind("->").unwrap();
78 let result = extract_arrow_subject(&chars, arrow_pos);
79 assert_eq!(result, "$user");
80}
81
82#[test]
83fn test_nullsafe_simple() {

Callers

nothing calls this directly

Calls 2

extract_arrow_subjectFunction · 0.85
unwrapMethod · 0.45

Tested by

no test coverage detected