Skip to content

Commit

Permalink
C#: Update expected test output.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelnebel committed Jan 3, 2025
1 parent 00e62a1 commit 70f2958
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 11 deletions.
1 change: 0 additions & 1 deletion csharp/ql/test/library-tests/dispatch/CallContext.expected
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,4 @@ mayBenefitFromCallContext
| ViableCallable.cs:563:18:563:22 | call to operator / |
| ViableCallable.cs:566:26:566:30 | call to operator checked / |
| ViableCallable.cs:572:9:572:15 | call to method M12 |
| ViableCallable.cs:599:9:599:13 | call to method M |
| ViableCallable.cs:605:9:605:13 | call to method M |
1 change: 0 additions & 1 deletion csharp/ql/test/library-tests/dispatch/CallGraph.expected
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,5 @@
| ViableCallable.cs:542:10:542:15 | Run`1 | ViableCallable.cs:539:17:539:19 | M11 |
| ViableCallable.cs:542:10:542:15 | Run`1 | ViableCallable.cs:540:17:540:19 | M12 |
| ViableCallable.cs:596:17:596:23 | Run1`1 | ViableCallable.cs:588:21:588:21 | M |
| ViableCallable.cs:596:17:596:23 | Run1`1 | ViableCallable.cs:593:21:593:21 | M |
| ViableCallable.cs:602:17:602:23 | Run2`1 | ViableCallable.cs:588:21:588:21 | M |
| ViableCallable.cs:602:17:602:23 | Run2`1 | ViableCallable.cs:593:21:593:21 | M |
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,5 @@
| ViableCallable.cs:572:9:572:15 | call to method M12 | I3<T>.M12() |
| ViableCallable.cs:575:9:575:15 | call to method M13 | I3<T>.M13() |
| ViableCallable.cs:599:9:599:13 | call to method M | C21+A1.M() |
| ViableCallable.cs:599:9:599:13 | call to method M | C21+A2.M() |
| ViableCallable.cs:605:9:605:13 | call to method M | C21+A1.M() |
| ViableCallable.cs:605:9:605:13 | call to method M | C21+A2.M() |
2 changes: 1 addition & 1 deletion csharp/ql/test/library-tests/dispatch/ViableCallable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ public void M() { }

public void Run1<T>(T t) where T : I
{
// Viable callable: A1.M() [also reports A2.M(); false positive]
// Viable callable: A1.M()
t.M();
}

Expand Down
2 changes: 1 addition & 1 deletion csharp/ql/test/library-tests/unification/Unification.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ struct S3 : I2 { }
ref struct RS : I2 { }
class C7 : I2 { }

class NormalConstraint<T> where T : I2 { } // False positive: Allows T to be `RS`.
class NormalConstraint<T> where T : I2 { }
class NegativeConstraint<T> where T : I2, allows ref struct { }
6 changes: 0 additions & 6 deletions csharp/ql/test/library-tests/unification/Unification.expected
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ constrainedTypeParameterSubsumes
| Unification.cs:8:10:8:11 | T2 | Unification.cs:31:12:31:23 | (string, T9) |
| Unification.cs:8:10:8:11 | T2 | Unification.cs:32:12:32:19 | (T8, T9) |
| Unification.cs:8:10:8:11 | T2 | Unification.cs:53:8:53:9 | S3 |
| Unification.cs:8:10:8:11 | T2 | Unification.cs:54:12:54:13 | RS |
| Unification.cs:9:10:9:11 | T3 | Unification.cs:1:11:1:12 | I1 |
| Unification.cs:9:10:9:11 | T3 | Unification.cs:6:7:6:8 | C0 |
| Unification.cs:9:10:9:11 | T3 | Unification.cs:7:7:7:12 | C1<C0> |
Expand Down Expand Up @@ -103,12 +102,10 @@ constrainedTypeParameterSubsumes
| Unification.cs:12:25:12:27 | T6d | Unification.cs:31:12:31:23 | (string, T9) |
| Unification.cs:12:25:12:27 | T6d | Unification.cs:32:12:32:19 | (T8, T9) |
| Unification.cs:12:25:12:27 | T6d | Unification.cs:53:8:53:9 | S3 |
| Unification.cs:12:25:12:27 | T6d | Unification.cs:54:12:54:13 | RS |
| Unification.cs:24:12:24:13 | Tm | Unification.cs:8:7:8:12 | C2<S2> |
| Unification.cs:24:12:24:13 | Tm | Unification.cs:24:12:24:13 | Tm |
| Unification.cs:57:24:57:24 | T | Unification.cs:52:11:52:12 | I2 |
| Unification.cs:57:24:57:24 | T | Unification.cs:53:8:53:9 | S3 |
| Unification.cs:57:24:57:24 | T | Unification.cs:54:12:54:13 | RS |
| Unification.cs:57:24:57:24 | T | Unification.cs:55:7:55:8 | C7 |
| Unification.cs:57:24:57:24 | T | Unification.cs:57:24:57:24 | T |
| Unification.cs:57:24:57:24 | T | Unification.cs:58:26:58:26 | T |
Expand All @@ -129,7 +126,6 @@ constrainedTypeParameterUnifiable
| Unification.cs:8:10:8:11 | T2 | Unification.cs:31:12:31:23 | (string, T9) |
| Unification.cs:8:10:8:11 | T2 | Unification.cs:32:12:32:19 | (T8, T9) |
| Unification.cs:8:10:8:11 | T2 | Unification.cs:53:8:53:9 | S3 |
| Unification.cs:8:10:8:11 | T2 | Unification.cs:54:12:54:13 | RS |
| Unification.cs:9:10:9:11 | T3 | Unification.cs:1:11:1:12 | I1 |
| Unification.cs:9:10:9:11 | T3 | Unification.cs:6:7:6:8 | C0 |
| Unification.cs:9:10:9:11 | T3 | Unification.cs:7:7:7:12 | C1<C0> |
Expand Down Expand Up @@ -232,13 +228,11 @@ constrainedTypeParameterUnifiable
| Unification.cs:12:25:12:27 | T6d | Unification.cs:31:12:31:23 | (string, T9) |
| Unification.cs:12:25:12:27 | T6d | Unification.cs:32:12:32:19 | (T8, T9) |
| Unification.cs:12:25:12:27 | T6d | Unification.cs:53:8:53:9 | S3 |
| Unification.cs:12:25:12:27 | T6d | Unification.cs:54:12:54:13 | RS |
| Unification.cs:24:12:24:13 | Tm | Unification.cs:8:7:8:12 | C2<S2> |
| Unification.cs:24:12:24:13 | Tm | Unification.cs:8:7:8:12 | C2<T2> |
| Unification.cs:24:12:24:13 | Tm | Unification.cs:24:12:24:13 | Tm |
| Unification.cs:57:24:57:24 | T | Unification.cs:52:11:52:12 | I2 |
| Unification.cs:57:24:57:24 | T | Unification.cs:53:8:53:9 | S3 |
| Unification.cs:57:24:57:24 | T | Unification.cs:54:12:54:13 | RS |
| Unification.cs:57:24:57:24 | T | Unification.cs:55:7:55:8 | C7 |
| Unification.cs:57:24:57:24 | T | Unification.cs:57:24:57:24 | T |
| Unification.cs:57:24:57:24 | T | Unification.cs:58:26:58:26 | T |
Expand Down

0 comments on commit 70f2958

Please sign in to comment.