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

Skip to content

Commit 51ebc0b

Browse files
committed
Amend test now that DataFlowCallable != Callable
1 parent a5e5a57 commit 51ebc0b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

go/ql/test/library-tests/semmle/go/dataflow/CallGraph/viableCallee.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ string metadata(Locatable l, string key) {
1717

1818
query predicate missingCallee(DataFlow::CallNode call, FuncDef callee) {
1919
metadata(call.asExpr(), "callee") = metadata(callee, "name") and
20-
not viableCallable(call.asExpr()).getFuncDef() = callee
20+
not viableCallable(call.asExpr()).asCallable().getFuncDef() = callee
2121
}
2222

2323
query predicate spuriousCallee(DataFlow::CallNode call, FuncDef callee) {
24-
viableCallable(call.asExpr()).getFuncDef() = callee and
24+
viableCallable(call.asExpr()).asCallable().getFuncDef() = callee and
2525
not metadata(call.asExpr(), "callee") = metadata(callee, "name")
2626
}

0 commit comments

Comments
 (0)