Roman Elizarov | 660c2d7 | 2020-02-14 13:18:37 +0300 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2016-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. |
| 3 | */ |
| 4 | |
| 5 | // This file was automatically generated from ${file.name} by Knit tool. Do not edit. |
| 6 | package ${test.package} |
| 7 | |
Roman Elizarov | b97ebfc | 2020-10-08 16:04:41 +0300 | [diff] [blame] | 8 | import kotlinx.coroutines.knit.* |
Roman Elizarov | 660c2d7 | 2020-02-14 13:18:37 +0300 | [diff] [blame] | 9 | import org.junit.Test |
| 10 | |
| 11 | class ${test.name} { |
| 12 | <#list cases as case><#assign method = test["mode.${case.param}"]!"custom"> |
| 13 | @Test |
| 14 | fun test${case.name}() { |
| 15 | test("${case.name}") { ${case.knit.package}.${case.knit.name}.main() }<#if method != "custom">.${method}( |
| 16 | <#list case.lines as line> |
| 17 | "${line?j_string}"<#sep>,</#sep> |
| 18 | </#list> |
| 19 | ) |
| 20 | <#else>.also { lines -> |
| 21 | check(${case.param}) |
| 22 | } |
| 23 | </#if> |
| 24 | } |
| 25 | <#sep> |
| 26 | |
| 27 | </#list> |
| 28 | } |