Skip to content

Commit

Permalink
chore: additional tests (#6918)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylong authored Aug 25, 2024
1 parent b4339ce commit e090d40
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,19 @@ public void testTestCveCpeStartWithFilter() {
List<Config> configurations = new ArrayList<>();
List<CpeMatch> matches = new ArrayList<>();
matches.add(null);

Node first = new Node(Node.Operator.OR, null, matches);
List<CpeMatch> cpeMatch = new ArrayList<>();
//cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:*
CpeMatch match = new CpeMatch(true, "cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:*", "matchCriteriaId", "versionStartExcluding",
"versionStartIncluding", "versionEndExcluding", "versionEndIncluding");
cpeMatch.add(match);
Node second = new Node(Node.Operator.OR, Boolean.FALSE, cpeMatch);
Node third = new Node(Node.Operator.OR, null, null);
List<Node> nodes = new ArrayList<>();
nodes.add(null);
nodes.add(first);
nodes.add(second);
nodes.add(third);

Config c = new Config(Config.Operator.AND, null, nodes);
configurations.add(c);
Expand Down

0 comments on commit e090d40

Please sign in to comment.