xref: /aosp_15_r20/external/kotlinx.coroutines/docs/knit.test.template (revision 7a7160fed73afa6648ef8aa100d4a336fe921d9a)
1*7a7160feSAndroid Build Coastguard Worker// This file was automatically generated from ${file.name} by Knit tool. Do not edit.
2*7a7160feSAndroid Build Coastguard Workerpackage ${test.package}
3*7a7160feSAndroid Build Coastguard Worker
4*7a7160feSAndroid Build Coastguard Workerimport kotlinx.coroutines.knit.*
5*7a7160feSAndroid Build Coastguard Workerimport org.junit.Test
6*7a7160feSAndroid Build Coastguard Worker
7*7a7160feSAndroid Build Coastguard Workerclass ${test.name} {
8*7a7160feSAndroid Build Coastguard Worker<#list cases as case><#assign method = test["mode.${case.param}"]!"custom">
9*7a7160feSAndroid Build Coastguard Worker    @Test
10*7a7160feSAndroid Build Coastguard Worker    fun test${case.name}() {
11*7a7160feSAndroid Build Coastguard Worker        test("${case.name}") { ${case.knit.package}.${case.knit.name}.main() }<#if method != "custom">.${method}(
12*7a7160feSAndroid Build Coastguard Worker<#list case.lines as line>
13*7a7160feSAndroid Build Coastguard Worker            "${line?j_string}"<#sep>,</#sep>
14*7a7160feSAndroid Build Coastguard Worker</#list>
15*7a7160feSAndroid Build Coastguard Worker        )
16*7a7160feSAndroid Build Coastguard Worker<#else>.also { lines ->
17*7a7160feSAndroid Build Coastguard Worker            check(${case.param})
18*7a7160feSAndroid Build Coastguard Worker        }
19*7a7160feSAndroid Build Coastguard Worker</#if>
20*7a7160feSAndroid Build Coastguard Worker    }
21*7a7160feSAndroid Build Coastguard Worker<#sep>
22*7a7160feSAndroid Build Coastguard Worker
23*7a7160feSAndroid Build Coastguard Worker</#list>
24*7a7160feSAndroid Build Coastguard Worker}