mirror of
https://github.com/github/codeql.git
synced 2026-05-05 05:35:13 +02:00
Kotlin: Add tests with suspend functions
This commit is contained in:
@@ -2,10 +2,11 @@ class FunctionReference {
|
||||
|
||||
fun fn1(s: String) = s
|
||||
|
||||
fun test() {
|
||||
suspend fun test() {
|
||||
fun fn2(s: String) = s
|
||||
|
||||
Helper.sink(Processor().process(this::fn1, Helper.taint()))
|
||||
Helper.sink(Processor().processSusp(this::fn1Susp, Helper.taint()))
|
||||
Helper.sink(Processor().process(FunctionReference::fn1, this, Helper.taint()))
|
||||
Helper.sink(Processor().process(this::fn1, Helper.notaint()))
|
||||
Helper.sink(Processor().process(::fn2, Helper.taint()))
|
||||
@@ -16,4 +17,6 @@ class FunctionReference {
|
||||
|
||||
val prop: String
|
||||
get() = Helper.taint()
|
||||
|
||||
suspend fun fn1Susp(s: String) = s
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user