Skip to content

Commit ec1bba2

Browse files
committed
C#: Update other affected tests (including database quality).
1 parent ca0f744 commit ec1bba2

4 files changed

Lines changed: 2 additions & 4 deletions

File tree

csharp/ql/test/library-tests/csharp8/NullableRefTypes.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ returnTypes
227227
| NullableRefTypes.cs:107:26:107:36 | ReturnsRef5 | readonly MyClass! |
228228
| NullableRefTypes.cs:108:26:108:36 | ReturnsRef6 | readonly MyClass! |
229229
| NullableRefTypes.cs:110:10:110:20 | Parameters1 | Void! |
230-
| NullableRefTypes.cs:113:32:113:44 | get_RefProperty | MyClass! |
230+
| NullableRefTypes.cs:113:32:113:44 | get_RefProperty | ref MyClass! |
231231
| NullableRefTypes.cs:116:7:116:23 | <object initializer> | Void |
232232
| NullableRefTypes.cs:116:7:116:23 | ToStringWithTypes | Void! |
233233
| NullableRefTypes.cs:136:7:136:24 | <object initializer> | Void |
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
| Quality.cs:26:19:26:26 | access to indexer | Call without target $@. | Quality.cs:26:19:26:26 | access to indexer | access to indexer |
22
| Quality.cs:29:21:29:27 | access to indexer | Call without target $@. | Quality.cs:29:21:29:27 | access to indexer | access to indexer |
3-
| Quality.cs:32:9:32:21 | access to indexer | Call without target $@. | Quality.cs:32:9:32:21 | access to indexer | access to indexer |

csharp/ql/test/query-tests/Telemetry/DatabaseQuality/NoTarget.expected

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,5 @@
99
| Quality.cs:23:9:23:30 | delegate call | Call without target $@. | Quality.cs:23:9:23:30 | delegate call | delegate call |
1010
| Quality.cs:26:19:26:26 | access to indexer | Call without target $@. | Quality.cs:26:19:26:26 | access to indexer | access to indexer |
1111
| Quality.cs:29:21:29:27 | access to indexer | Call without target $@. | Quality.cs:29:21:29:27 | access to indexer | access to indexer |
12-
| Quality.cs:32:9:32:21 | access to indexer | Call without target $@. | Quality.cs:32:9:32:21 | access to indexer | access to indexer |
1312
| Quality.cs:38:16:38:26 | access to property MyProperty2 | Call without target $@. | Quality.cs:38:16:38:26 | access to property MyProperty2 | access to property MyProperty2 |
1413
| Quality.cs:50:20:50:26 | object creation of type T | Call without target $@. | Quality.cs:50:20:50:26 | object creation of type T | object creation of type T |

csharp/ql/test/query-tests/Telemetry/DatabaseQuality/Quality.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public Test()
2929
var slice = sp[..3]; // TODO: this is not an indexer call, but rather a `sp.Slice(0, 3)` call.
3030

3131
Span<byte> guidBytes = stackalloc byte[16];
32-
guidBytes[08] = 1; // TODO: this indexer call has no target, because the target is a `ref` returning getter.
32+
guidBytes[08] = 1;
3333

3434
new MyList([new(), new Test()]);
3535
}

0 commit comments

Comments
 (0)