()
| 275 | |
| 276 | #[test] |
| 277 | fn context_with_prefix() { |
| 278 | let content = "<?php\nfoo(na"; |
| 279 | let pos = Position { |
| 280 | line: 1, |
| 281 | character: 6, |
| 282 | }; |
| 283 | let ctx = detect_named_arg_context(content, pos); |
| 284 | assert!(ctx.is_some()); |
| 285 | let ctx = ctx.unwrap(); |
| 286 | assert_eq!(ctx.call_expression, "foo"); |
| 287 | assert_eq!(ctx.prefix, "na"); |
| 288 | } |
| 289 | |
| 290 | #[test] |
| 291 | fn context_after_positional() { |
nothing calls this directly
no test coverage detected