mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
CFG: Workaround in test output for source/sink pairs with multiple edges
This commit is contained in:
@@ -907,9 +907,13 @@ module TestOutput {
|
||||
|
||||
query predicate edges(RelevantNode pred, RelevantNode succ, string attr, string val) {
|
||||
attr = "semmle.label" and
|
||||
exists(SuccessorType t | succ = getASuccessor(pred, t) |
|
||||
if successorTypeIsSimple(t) then val = "" else val = t.toString()
|
||||
)
|
||||
val =
|
||||
strictconcat(SuccessorType t, string s |
|
||||
succ = getASuccessor(pred, t) and
|
||||
if successorTypeIsSimple(t) then s = "" else s = t.toString()
|
||||
|
|
||||
s, ", " order by s
|
||||
)
|
||||
or
|
||||
attr = "semmle.order" and
|
||||
val =
|
||||
|
||||
@@ -2775,7 +2775,7 @@ Assert.cs:
|
||||
#-----| true -> access to parameter b2
|
||||
|
||||
# 140| [assertion failure] access to parameter b2
|
||||
#-----| false -> [assertion failure] access to parameter b3
|
||||
#-----| false, true -> [assertion failure] access to parameter b3
|
||||
|
||||
# 140| access to parameter b2
|
||||
#-----| false -> [assertion success] access to parameter b3
|
||||
@@ -4924,7 +4924,7 @@ ExitMethods.cs:
|
||||
#-----| -> ...;
|
||||
|
||||
# 22| call to method ErrorAlways
|
||||
#-----| exception(Exception) -> exit M3 (abnormal)
|
||||
#-----| exception(ArgumentException), exception(Exception) -> exit M3 (abnormal)
|
||||
|
||||
# 22| ...;
|
||||
#-----| -> true
|
||||
|
||||
Reference in New Issue
Block a user