()
| 259 | |
| 260 | #[test] |
| 261 | fn context_simple_function() { |
| 262 | let content = "<?php\nfoo("; |
| 263 | let pos = Position { |
| 264 | line: 1, |
| 265 | character: 4, |
| 266 | }; |
| 267 | let ctx = detect_named_arg_context(content, pos); |
| 268 | assert!(ctx.is_some(), "Should detect context inside foo("); |
| 269 | let ctx = ctx.unwrap(); |
| 270 | assert_eq!(ctx.call_expression, "foo"); |
| 271 | assert!(ctx.existing_named_args.is_empty()); |
| 272 | assert_eq!(ctx.positional_count, 0); |
| 273 | assert_eq!(ctx.prefix, ""); |
| 274 | } |
| 275 | |
| 276 | #[test] |
| 277 | fn context_with_prefix() { |
nothing calls this directly
no test coverage detected