()
| 35 | |
| 36 | #[test] |
| 37 | fn 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] |
| 55 | fn test_parse_autoload_dev() { |
nothing calls this directly
no test coverage detected