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