()
| 289 | |
| 290 | #[test] |
| 291 | fn context_after_positional() { |
| 292 | let content = "<?php\nfoo($x, "; |
| 293 | let pos = Position { |
| 294 | line: 1, |
| 295 | character: 8, |
| 296 | }; |
| 297 | let ctx = detect_named_arg_context(content, pos); |
| 298 | assert!(ctx.is_some()); |
| 299 | let ctx = ctx.unwrap(); |
| 300 | assert_eq!(ctx.call_expression, "foo"); |
| 301 | assert_eq!(ctx.positional_count, 1); |
| 302 | } |
| 303 | |
| 304 | #[test] |
| 305 | fn context_after_named_arg() { |
nothing calls this directly
no test coverage detected