mirror of
https://github.com/github/codeql.git
synced 2026-05-03 04:39:29 +02:00
Fix LinkedMultiValueMap models and make tests more realistic
This commit is contained in:
@@ -439,16 +439,18 @@ public class Test {
|
||||
{
|
||||
// "org.springframework.util;LinkedMultiValueMap;false;deepCopy;;;MapKey of Argument[-1];MapValue of ReturnValue;value"
|
||||
LinkedMultiValueMap<Object, Object> out = null;
|
||||
LinkedMultiValueMap in = (LinkedMultiValueMap)Map.of(source(), null);
|
||||
LinkedMultiValueMap in = new LinkedMultiValueMap<Object, Object>();
|
||||
in.set(source(), null);
|
||||
out = in.deepCopy();
|
||||
sink(getMapValue(out)); // $hasValueFlow
|
||||
sink(getMapKey(out)); // $hasValueFlow
|
||||
}
|
||||
{
|
||||
// "org.springframework.util;LinkedMultiValueMap;false;deepCopy;;;MapValue of Argument[-1];MapValue of ReturnValue;value"
|
||||
LinkedMultiValueMap<Object, Object> out = null;
|
||||
LinkedMultiValueMap in = (LinkedMultiValueMap)Map.of(null, source());
|
||||
LinkedMultiValueMap in = new LinkedMultiValueMap<Object, Object>();
|
||||
in.set(null, source());
|
||||
out = in.deepCopy();
|
||||
sink(getMapValue(out)); // $hasValueFlow
|
||||
sink(getElement(getMapValue(out))); // $hasValueFlow
|
||||
}
|
||||
{
|
||||
// "org.springframework.util;MultiValueMap;true;add;;;Argument[0];MapKey of Argument[-1];value"
|
||||
@@ -620,13 +622,6 @@ public class Test {
|
||||
out.set(in, null);
|
||||
sink(getMapKey(out)); // $hasValueFlow
|
||||
}
|
||||
{
|
||||
// "org.springframework.util;MultiValueMap;true;set;;;Argument[0];MapKey of Argument[-1];value"
|
||||
MultiValueMap<Object, Object> out = null;
|
||||
Object in = source();
|
||||
out.set(in, (Object)null);
|
||||
sink(getMapKey(out)); // $hasValueFlow
|
||||
}
|
||||
{
|
||||
// "org.springframework.util;MultiValueMap;true;set;;;Argument[1];Element of MapValue of Argument[-1];value"
|
||||
MultiValueMapAdapter<Object, Object> out = null;
|
||||
|
||||
Reference in New Issue
Block a user