You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
717 B
28 lines
717 B
7 months ago
|
/*
|
||
|
* 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>
|
||
|
}
|