Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d6fa7db

Browse files
committed
C#: Update CSV validation to the new format and improve test failure printing.
1 parent e3a5f7b commit d6fa7db

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

csharp/ql/lib/semmle/code/csharp/dataflow/ExternalFlow.qll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -347,18 +347,18 @@ module CsvValidation {
347347
)
348348
or
349349
exists(string pred, string row, int expect |
350-
sourceModel(row) and expect = 8 and pred = "source"
350+
sourceModel(row) and expect = 9 and pred = "source"
351351
or
352-
sinkModel(row) and expect = 8 and pred = "sink"
352+
sinkModel(row) and expect = 9 and pred = "sink"
353353
or
354-
summaryModel(row) and expect = 9 and pred = "summary"
354+
summaryModel(row) and expect = 10 and pred = "summary"
355355
|
356356
exists(int cols |
357357
cols = 1 + max(int n | exists(row.splitAt(";", n))) and
358358
cols != expect and
359359
msg =
360360
"Wrong number of columns in " + pred + " model row, expected " + expect + ", got " + cols +
361-
"."
361+
" in " + row + "."
362362
)
363363
or
364364
exists(string b |

0 commit comments

Comments
 (0)