Debian Codegraph @

testdata/purl-spec/tests/types/chrome-extension-test.json

raw symbols SCIP
1 {
2 "$schema": "https://packageurl.org/schemas/purl-test.schema-1.0.json",
3 "tests": [
4 {
5 "description": "valid chrome purl (version: full)",
6 "test_group": "base",
7 "test_type": "roundtrip",
8 "input": "pkg:chrome-extension/[email protected]",
9 "expected_output": "pkg:chrome-extension/[email protected]",
10 "expected_failure": false,
11 "expected_failure_reason": null
12 },
13 {
14 "description": "valid chrome purl (version: short)",
15 "test_group": "base",
16 "test_type": "roundtrip",
17 "input": "pkg:chrome-extension/[email protected]",
18 "expected_output": "pkg:chrome-extension/[email protected]",
19 "expected_failure": false,
20 "expected_failure_reason": null
21 },
22 {
23 "description": "valid chrome purl (version: missing)",
24 "test_group": "base",
25 "test_type": "roundtrip",
26 "input": "pkg:chrome-extension/dlpngalgnefjeiefhmpklpfiohadpglk",
27 "expected_output": "pkg:chrome-extension/dlpngalgnefjeiefhmpklpfiohadpglk",
28 "expected_failure": false,
29 "expected_failure_reason": null
30 },
31 {
32 "description": "invalid chrome purl (name: invalid characters)",
33 "test_group": "base",
34 "test_type": "parse",
35 "input": "pkg:chrome-extension/44444algnefjeiefhmpklpfiohadpglk",
36 "expected_output": null,
37 "expected_failure": true,
38 "expected_failure_reason": "permitted_characters"
39 },
40 {
41 "description": "invalid chrome purl (name: wrong length)",
42 "test_group": "base",
43 "test_type": "parse",
44 "input": "pkg:chrome-extension/dogs",
45 "expected_output": null,
46 "expected_failure": true,
47 "expected_failure_reason": "permitted_characters"
48 },
49 {
50 "description": "invalid chrome purl (version: too many segments)",
51 "test_group": "base",
52 "test_type": "parse",
53 "input": "pkg:chrome-extension/[email protected]",
54 "expected_output": null,
55 "expected_failure": true,
56 "expected_failure_reason": "permitted_characters"
57 },
58 {
59 "description": "invalid chrome purl (version: invalid characters)",
60 "test_group": "base",
61 "test_type": "parse",
62 "input": "pkg:chrome-extension/[email protected]",
63 "expected_output": null,
64 "expected_failure": true,
65 "expected_failure_reason": "permitted_characters"
66 }
67 ]
68 }