forked from Kotlin/kotlinx.coroutines
-
Notifications
You must be signed in to change notification settings - Fork 0
/
knit.test.template
28 lines (24 loc) · 717 Bytes
/
knit.test.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
* Copyright 2016-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
// This file was automatically generated from ${file.name} by Knit tool. Do not edit.
package ${test.package}
import kotlinx.coroutines.knit.*
import org.junit.Test
class ${test.name} {
<#list cases as case><#assign method = test["mode.${case.param}"]!"custom">
@Test
fun test${case.name}() {
test("${case.name}") { ${case.knit.package}.${case.knit.name}.main() }<#if method != "custom">.${method}(
<#list case.lines as line>
"${line?j_string}"<#sep>,</#sep>
</#list>
)
<#else>.also { lines ->
check(${case.param})
}
</#if>
}
<#sep>
</#list>
}