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

Function test_parse_defines_double_quoted

tests/integration/parser.rs:1636–1641  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1634
1635#[tokio::test]
1636async fn test_parse_defines_double_quoted() {
1637 let backend = create_test_backend();
1638 let defines = backend.parse_defines("<?php\ndefine(\"MY_CONST\", 'hello');\n");
1639 let names: Vec<&str> = defines.iter().map(|(n, _, _)| n.as_str()).collect();
1640 assert_eq!(names, vec!["MY_CONST"]);
1641}
1642
1643#[tokio::test]
1644async fn test_parse_defines_multiple() {

Callers

nothing calls this directly

Calls 5

create_test_backendFunction · 0.85
parse_definesMethod · 0.80
iterMethod · 0.80
as_strMethod · 0.80
mapMethod · 0.45

Tested by

no test coverage detected