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

Function context_with_prefix

tests/unit/named_args_internals.rs:277–288  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

275
276#[test]
277fn 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]
291fn context_after_positional() {

Callers

nothing calls this directly

Calls 2

detect_named_arg_contextFunction · 0.85
unwrapMethod · 0.45

Tested by

no test coverage detected