()
| 72 | |
| 73 | #[test] |
| 74 | fn 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] |
| 83 | fn test_nullsafe_simple() { |
nothing calls this directly
no test coverage detected