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

Function test_regular_chain

src/subject_extraction_tests.rs:49–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47
48#[test]
49fn test_regular_chain() {
50 let input = "$user->getProfile()->getName()->";
51 let chars: Vec<char> = input.chars().collect();
52 let arrow_pos = input.rfind("->").unwrap();
53 let result = extract_arrow_subject(&chars, arrow_pos);
54 assert!(
55 result.contains("getProfile") && result.contains("getName"),
56 "Expected full chain, got: {result}"
57 );
58}
59
60#[test]
61fn test_triple_method_chain() {

Callers

nothing calls this directly

Calls 2

extract_arrow_subjectFunction · 0.85
unwrapMethod · 0.45

Tested by

no test coverage detected