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

Function test_parse_invalid_json

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

Source from the content-addressed store, hash-verified

107
108#[test]
109fn test_parse_invalid_json() {
110 let ws = TestWorkspace::new("not valid json {{{");
111 let (mappings, _vendor_dir) = parse_composer_json(ws.root());
112 assert!(mappings.is_empty());
113}
114
115#[test]
116fn test_parse_no_psr4_section() {

Callers

nothing calls this directly

Calls 2

parse_composer_jsonFunction · 0.85
rootMethod · 0.80

Tested by

no test coverage detected