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

Function test_parse_functions_empty_file

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

Source from the content-addressed store, hash-verified

1144
1145#[tokio::test]
1146async fn test_parse_functions_empty_file() {
1147 let backend = create_test_backend();
1148 let php = "<?php\n// nothing here\n";
1149
1150 let functions = backend.parse_functions(php);
1151 assert!(functions.is_empty(), "No functions in an empty file");
1152}
1153
1154// ─── Functions inside if-guards ─────────────────────────────────────────────
1155

Callers

nothing calls this directly

Calls 2

create_test_backendFunction · 0.85
parse_functionsMethod · 0.80

Tested by

no test coverage detected