mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Merge pull request #6130 from aschackmull/java/collection-test
Java: Improve test and fix a few missing cases.
This commit is contained in:
@@ -95,6 +95,7 @@ private class ContainerFlowSummaries extends SummaryModelCsv {
|
||||
override predicate row(string row) {
|
||||
row =
|
||||
[
|
||||
"java.util;Map<>$Entry;true;getKey;;;MapKey of Argument[-1];ReturnValue;value",
|
||||
"java.util;Map<>$Entry;true;getValue;;;MapValue of Argument[-1];ReturnValue;value",
|
||||
"java.util;Map<>$Entry;true;setValue;;;MapValue of Argument[-1];ReturnValue;value",
|
||||
"java.util;Map<>$Entry;true;setValue;;;Argument[0];MapValue of Argument[-1];value",
|
||||
@@ -193,6 +194,7 @@ private class ContainerFlowSummaries extends SummaryModelCsv {
|
||||
"java.util.concurrent;ConcurrentHashMap;true;elements;();;MapValue of Argument[-1];Element of ReturnValue;value",
|
||||
"java.util;Dictionary;true;elements;();;MapValue of Argument[-1];Element of ReturnValue;value",
|
||||
"java.util;Dictionary;true;get;(Object);;MapValue of Argument[-1];ReturnValue;value",
|
||||
"java.util;Dictionary;true;keys;();;MapKey of Argument[-1];Element of ReturnValue;value",
|
||||
"java.util;Dictionary;true;put;(Object,Object);;MapValue of Argument[-1];ReturnValue;value",
|
||||
"java.util;Dictionary;true;put;(Object,Object);;Argument[0];MapKey of Argument[-1];value",
|
||||
"java.util;Dictionary;true;put;(Object,Object);;Argument[1];MapValue of Argument[-1];value",
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -9,14 +9,8 @@ class SummaryModelTest extends SummaryModelCsv {
|
||||
row =
|
||||
[
|
||||
//"package;type;overrides;name;signature;ext;inputspec;outputspec;kind",
|
||||
";B;false;storeArrayElement;(Object);;Argument[0];ArrayElement of ReturnValue;value",
|
||||
";B;false;storeElement;(Object);;Argument[0];Element of ReturnValue;value",
|
||||
";B;false;storeMapKey;(Object);;Argument[0];MapKey of ReturnValue;value",
|
||||
";B;false;storeMapValue;(Object);;Argument[0];MapValue of ReturnValue;value",
|
||||
";B;false;readArrayElement;(Object);;ArrayElement of Argument[0];ReturnValue;value",
|
||||
";B;false;readElement;(Object);;Element of Argument[0];ReturnValue;value",
|
||||
";B;false;readMapKey;(Object);;MapKey of Argument[0];ReturnValue;value",
|
||||
";B;false;readMapValue;(Object);;MapValue of Argument[0];ReturnValue;value"
|
||||
";B;false;readElement;(Spliterator);;Element of Argument[0];ReturnValue;value",
|
||||
";B;false;readElement;(Stream);;Element of Argument[0];ReturnValue;value"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user