Skip to content

Commit

Permalink
C#: Update the dispatch tests expected output.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelnebel committed Dec 20, 2024
1 parent c449141 commit ecced67
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
10 changes: 10 additions & 0 deletions csharp/ql/test/library-tests/dispatch/GetADynamicTarget.expected
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,10 @@
| ViableCallable.cs:148:13:148:22 | call to method Mock<C8> | ViableCallable.Mock<C8>() |
| ViableCallable.cs:149:9:149:14 | dynamic call to method M5 | C8.M5(params IEnumerable<double>) |
| ViableCallable.cs:149:9:149:14 | dynamic call to method M5 | C9`1.M5(params IEnumerable<T>) |
| ViableCallable.cs:150:9:150:15 | dynamic call to method M5 | C8.M5(params IEnumerable<double>) |
| ViableCallable.cs:150:9:150:15 | dynamic call to method M5 | C9`1.M5(params IEnumerable<T>) |
| ViableCallable.cs:151:9:151:20 | dynamic call to method M5 | C8.M5(params IEnumerable<double>) |
| ViableCallable.cs:151:9:151:20 | dynamic call to method M5 | C9`1.M5(params IEnumerable<T>) |
| ViableCallable.cs:154:9:154:16 | dynamic call to method M3 | C8.M3(params Double[]) |
| ViableCallable.cs:154:9:154:16 | dynamic call to method M3 | C9`1.M3(params T[]) |
| ViableCallable.cs:154:9:154:16 | dynamic call to method M3 | C10.M3(params Double[]) |
Expand All @@ -349,6 +353,12 @@
| ViableCallable.cs:158:9:158:16 | dynamic call to method M5 | C8.M5(params IEnumerable<double>) |
| ViableCallable.cs:158:9:158:16 | dynamic call to method M5 | C9`1.M5(params IEnumerable<T>) |
| ViableCallable.cs:158:9:158:16 | dynamic call to method M5 | C10.M5(params IEnumerable<double>) |
| ViableCallable.cs:159:9:159:17 | dynamic call to method M5 | C8.M5(params IEnumerable<double>) |
| ViableCallable.cs:159:9:159:17 | dynamic call to method M5 | C9`1.M5(params IEnumerable<T>) |
| ViableCallable.cs:159:9:159:17 | dynamic call to method M5 | C10.M5(params IEnumerable<double>) |
| ViableCallable.cs:160:9:160:22 | dynamic call to method M5 | C8.M5(params IEnumerable<double>) |
| ViableCallable.cs:160:9:160:22 | dynamic call to method M5 | C9`1.M5(params IEnumerable<T>) |
| ViableCallable.cs:160:9:160:22 | dynamic call to method M5 | C10.M5(params IEnumerable<double>) |
| ViableCallable.cs:162:9:162:17 | dynamic access to member Prop1 | C8.set_Prop1(string) |
| ViableCallable.cs:162:9:162:17 | dynamic access to member Prop1 | C9`1.set_Prop1(string) |
| ViableCallable.cs:162:9:162:17 | dynamic access to member Prop1 | C10.set_Prop1(bool) |
Expand Down
8 changes: 4 additions & 4 deletions csharp/ql/test/library-tests/dispatch/ViableCallable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,17 +147,17 @@ public void Run<T1, T2, T3>(C1<T1, T2> x1, C1<T1[], T2> x2, dynamic dyn, T3 t3)
// Viable callables: C8.M5(), C9.M5()
d = Mock<C8>();
d.M5();
d.M5(0); // MISSING DYNAMIC TARGET
d.M5(0, 0.0); // MISSING DYNAMIC TARGET
d.M5(0);
d.M5(0, 0.0);

// Viable callables: {C8,C9,C10}.M3()
dyn.M3();
dyn.M3(0);
dyn.M3(0, 0.0);
// Viable callables: {C8,C9,C10}.M5()
dyn.M5();
dyn.M5(0); // MISSING DYNAMIC TARGET
dyn.M5(0, 0.0); // MISSING DYNAMIC TARGET
dyn.M5(0);
dyn.M5(0, 0.0);
// Viable callables: {C8,C9,C10}.{get_Prop1(),set_Prop1()}
dyn.Prop1 = dyn.Prop1;
// Viable callables: {C2,C3,C6,C7,C8,C9,C10}.{get_Item(),set_Item()}
Expand Down
10 changes: 10 additions & 0 deletions csharp/ql/test/library-tests/dispatch/viableCallable.expected
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,10 @@
| ViableCallable.cs:145:9:145:20 | dynamic call to method M3 | M3 | C9`1 |
| ViableCallable.cs:149:9:149:14 | dynamic call to method M5 | M5 | C8 |
| ViableCallable.cs:149:9:149:14 | dynamic call to method M5 | M5 | C9`1 |
| ViableCallable.cs:150:9:150:15 | dynamic call to method M5 | M5 | C8 |
| ViableCallable.cs:150:9:150:15 | dynamic call to method M5 | M5 | C9`1 |
| ViableCallable.cs:151:9:151:20 | dynamic call to method M5 | M5 | C8 |
| ViableCallable.cs:151:9:151:20 | dynamic call to method M5 | M5 | C9`1 |
| ViableCallable.cs:154:9:154:16 | dynamic call to method M3 | M3 | C8 |
| ViableCallable.cs:154:9:154:16 | dynamic call to method M3 | M3 | C9`1 |
| ViableCallable.cs:154:9:154:16 | dynamic call to method M3 | M3 | C10 |
Expand All @@ -176,6 +180,12 @@
| ViableCallable.cs:158:9:158:16 | dynamic call to method M5 | M5 | C8 |
| ViableCallable.cs:158:9:158:16 | dynamic call to method M5 | M5 | C9`1 |
| ViableCallable.cs:158:9:158:16 | dynamic call to method M5 | M5 | C10 |
| ViableCallable.cs:159:9:159:17 | dynamic call to method M5 | M5 | C8 |
| ViableCallable.cs:159:9:159:17 | dynamic call to method M5 | M5 | C9`1 |
| ViableCallable.cs:159:9:159:17 | dynamic call to method M5 | M5 | C10 |
| ViableCallable.cs:160:9:160:22 | dynamic call to method M5 | M5 | C8 |
| ViableCallable.cs:160:9:160:22 | dynamic call to method M5 | M5 | C9`1 |
| ViableCallable.cs:160:9:160:22 | dynamic call to method M5 | M5 | C10 |
| ViableCallable.cs:162:9:162:17 | dynamic access to member Prop1 | set_Prop1 | C8 |
| ViableCallable.cs:162:9:162:17 | dynamic access to member Prop1 | set_Prop1 | C9`1 |
| ViableCallable.cs:162:9:162:17 | dynamic access to member Prop1 | set_Prop1 | C10 |
Expand Down

0 comments on commit ecced67

Please sign in to comment.