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

Function test_parse_basic_psr4

tests/unit/composer.rs:37–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35
36#[test]
37fn test_parse_basic_psr4() {
38 let ws = TestWorkspace::new(
39 r#"{
40 "autoload": {
41 "psr-4": {
42 "Klarna\\": "src/Klarna/"
43 }
44 }
45 }"#,
46 );
47
48 let (mappings, _vendor_dir) = parse_composer_json(ws.root());
49 assert_eq!(mappings.len(), 1);
50 assert_eq!(mappings[0].prefix, "Klarna\\");
51 assert_eq!(mappings[0].base_path, "src/Klarna/");
52}
53
54#[test]
55fn test_parse_autoload_dev() {

Callers

nothing calls this directly

Calls 2

parse_composer_jsonFunction · 0.85
rootMethod · 0.80

Tested by

no test coverage detected