-
Benji Visser committed with GitHub 1 year ago1 parent 64be0a10
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
-
skipped 22 lines 23 23 expected: pkg.Package{ 24 24 Name: "python", 25 25 Version: "3.7.4a-vZ9", 26 + PURL: "pkg:generic/[email protected]", 26 27 Locations: singleLocation("libpython3.7.so"), 27 28 Metadata: pkg.BinaryMetadata{ 28 29 Classifier: "python-binary-lib", skipped 6 lines 35 36 expected: pkg.Package{ 36 37 Name: "python", 37 38 Version: "3.6.3a-vZ9", 39 + PURL: "pkg:generic/[email protected]", 38 40 Locations: singleLocation("python3.6"), 39 41 Metadata: pkg.BinaryMetadata{ 40 42 Classifier: "python-binary", skipped 6 lines 47 49 expected: pkg.Package{ 48 50 Name: "python", 49 51 Version: "3.9-aZ5", 52 + PURL: "pkg:generic/[email protected]", 50 53 Locations: singleLocation("patchlevel.h"), 51 54 Metadata: pkg.BinaryMetadata{ 52 55 Classifier: "cpython-source", skipped 6 lines 59 62 expected: pkg.Package{ 60 63 Name: "go", 61 64 Version: "1.14", 65 + PURL: "pkg:generic/[email protected]", 62 66 Locations: singleLocation("go"), 63 67 Metadata: pkg.BinaryMetadata{ 64 68 Classifier: "go-binary", skipped 6 lines 71 75 expected: pkg.Package{ 72 76 Name: "node", 73 77 Version: "19.2.1", 78 + PURL: "pkg:generic/[email protected]", 74 79 Locations: singleLocation("node"), 75 80 Metadata: pkg.BinaryMetadata{ 76 81 Classifier: "nodejs-binary", skipped 6 lines 83 88 expected: pkg.Package{ 84 89 Name: "go", 85 90 Version: "1.15", 91 + PURL: "pkg:generic/[email protected]", 86 92 Locations: singleLocation("VERSION"), 87 93 Metadata: pkg.BinaryMetadata{ 88 94 Classifier: "go-binary-hint", skipped 20 lines 109 115 Name: "java", 110 116 Version: "1.8.0_352-b08", 111 117 Type: "binary", 118 + PURL: "pkg:generic/[email protected]_352-b08", 112 119 Locations: singleLocation("java"), 113 120 Metadata: pkg.BinaryMetadata{ 114 121 Classifier: "java-binary-openjdk", skipped 8 lines 123 130 Name: "java", 124 131 Version: "11.0.17+8-LTS", 125 132 Type: "binary", 133 + PURL: "pkg:generic/[email protected]+8-LTS", 126 134 Locations: singleLocation("java"), 127 135 Metadata: pkg.BinaryMetadata{ 128 136 Classifier: "java-binary-openjdk", skipped 8 lines 137 145 Name: "java", 138 146 Version: "19.0.1+10-21", 139 147 Type: "binary", 148 + PURL: "pkg:generic/[email protected]+10-21", 140 149 Locations: singleLocation("java"), 141 150 Metadata: pkg.BinaryMetadata{ 142 151 Classifier: "java-binary-oracle", skipped 8 lines 151 160 Name: "java", 152 161 Version: "19.0.1+10-21", 153 162 Type: "binary", 163 + PURL: "pkg:generic/[email protected]+10-21", 154 164 Locations: singleLocation("java"), 155 165 Metadata: pkg.BinaryMetadata{ 156 166 Classifier: "java-binary-oracle", skipped 8 lines 165 175 Name: "java", 166 176 Version: "1.8.0-foreman_2022_09_22_15_30-b00", 167 177 Type: "binary", 178 + PURL: "pkg:generic/[email protected]_2022_09_22_15_30-b00", 168 179 Locations: singleLocation("java"), 169 180 Metadata: pkg.BinaryMetadata{ 170 181 Classifier: "java-binary-ibm", skipped 106 lines 277 288 meta2 := p.Metadata.(pkg.BinaryMetadata) 278 289 if expected.Name != p.Name || 279 290 expected.Version != p.Version || 291 + expected.PURL != p.PURL || 280 292 meta1.Classifier != meta2.Classifier { 281 293 assert.Failf(t, "packages not equal", "%v != %v", expected, p) 282 294 } skipped 2 lines -