Skip to content

Commit 6760dd9

Browse files
committed
C#: Base Nullness tests on stubs.
1 parent b3be479 commit 6760dd9

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

csharp/ql/test/query-tests/Nullness/Implications.ql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@ import csharp
22
import semmle.code.csharp.controlflow.Guards
33

44
query predicate impliesStep(Expr e1, AbstractValue v1, Expr e2, AbstractValue v2) {
5+
e1.fromSource() and
6+
e2.fromSource() and
57
Internal::impliesStep(e1, v1, e2, v2)
68
}
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
semmle-extractor-options: /r:System.Linq.dll /r:System.Drawing.Primitives.dll
2-
semmle-extractor-options: ${testdir}/../../resources/stubs/Microsoft.VisualStudio.TestTools.UnitTesting.cs
1+
semmle-extractor-options: /nostdlib /noconfig
2+
semmle-extractor-options: --load-sources-from-project:${testdir}/../../resources/stubs/_frameworks/Microsoft.NETCore.App/Microsoft.NETCore.App.csproj
3+
semmle-extractor-options: ${testdir}/../../resources/stubs/Microsoft.VisualStudio.TestTools.UnitTesting.cs

0 commit comments

Comments
 (0)