mirror of
https://github.com/anchore/syft.git
synced 2026-03-30 05:33:24 +02:00
test: add failing CPE formatting for colons
Signed-off-by: Weston Steimel <author@code.w.steimel.me.uk>
This commit is contained in:
parent
860126c650
commit
1f2a299cb5
@ -219,6 +219,16 @@ func Test_RoundTrip(t *testing.T) {
|
|||||||
Version: "3.2",
|
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 {
|
for _, test := range tests {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user