-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into redsun82/env-dump-integration-test
- Loading branch information
Showing
23 changed files
with
1,468 additions
and
1,284 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,528 changes: 797 additions & 731 deletions
1,528
csharp/ql/test/library-tests/dataflow/collections/CollectionFlow.expected
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using System; | ||
|
||
public class Container | ||
{ | ||
public object[] Buffer { get; } = new object[10]; | ||
} | ||
|
||
public class TestIndex | ||
{ | ||
public void M() | ||
{ | ||
var c = new Container() | ||
{ | ||
Buffer = | ||
{ | ||
[0] = new object(), | ||
[1] = new object(), | ||
[^1] = new object() | ||
} | ||
}; | ||
c.Buffer[4] = new object(); | ||
c.Buffer[^3] = new object(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
| Index.cs:18:18:18:19 | ^... | Index.cs:18:19:18:19 | 1 | | ||
| Index.cs:22:18:22:19 | ^... | Index.cs:22:19:22:19 | 3 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import csharp | ||
|
||
from IndexExpr e | ||
select e, e.getExpr() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
extensions: | ||
- addsTo: | ||
pack: codeql/rust-all | ||
extensible: sourceModel | ||
data: | ||
- ["lang:std", "crate::env::args", "ReturnValue", "command-line-source", "manual"] | ||
- ["lang:std", "crate::env::args_os", "ReturnValue", "command-line-source", "manual"] | ||
- ["lang:std", "crate::env::current_dir", "ReturnValue", "command-line-source", "manual"] | ||
- ["lang:std", "crate::env::current_exe", "ReturnValue", "command-line-source", "manual"] | ||
- ["lang:std", "crate::env::home_dir", "ReturnValue", "command-line-source", "manual"] | ||
- ["lang:std", "crate::env::var", "ReturnValue", "environment-source", "manual"] | ||
- ["lang:std", "crate::env::var_os", "ReturnValue", "environment-source", "manual"] | ||
- ["lang:std", "crate::env::vars", "ReturnValue", "environment-source", "manual"] | ||
- ["lang:std", "crate::env::vars_os", "ReturnValue", "environment-source", "manual"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
private import codeql.dataflow.test.ProvenancePathGraph as Graph | ||
private import codeql.rust.dataflow.internal.ModelsAsData as MaD | ||
|
||
private signature predicate provenanceSig(string model); | ||
|
||
/** Translates models-as-data provenance information into a format that can be used in tests. */ | ||
module TranslateModels<provenanceSig/1 provenance> { | ||
import Graph::TranslateModels<MaD::interpretModelForTest/2, provenance/1> | ||
} |
Oops, something went wrong.