Compare commits

...
Author SHA1 Message Date
Weston Steimel 1f2a299cb5 test: add failing CPE formatting for colons
Signed-off-by: Weston Steimel <author@code.w.steimel.me.uk>
2026-03-23 15:47:12 +00:00
+10
View File
@@ -219,6 +219,16 @@ func Test_RoundTrip(t *testing.T) {
Version: "3.2",
},
},
{
name: "escaped colon",
cpe: "cpe:2.3:a:test_vendor:name\\:\\:module:3.2:*:*:*:*:*:*:*",
parsedCPE: Attributes{
Part: "a",
Vendor: "test_vendor",
Product: "name::module",
Version: "3.2",
},
},
}
for _, test := range tests {