IDE perf tests for K/N: Produce duplicated *.kt files on demand

This commit is contained in:
Dmitriy Dolovov
2020-03-04 19:41:10 +07:00
parent 44c8a85241
commit 17152899ac
16 changed files with 54 additions and 934 deletions
@@ -1,3 +1,5 @@
@file:Suppress("PackageDirectoryMismatch")
package perfTestPackage1 // this package is mandatory
fun main(args: Array<String>) {
println("Hello World!")
@@ -1,4 +0,0 @@
fun main(args: Array<String>) {
println("Hello World!")
}
@@ -1,4 +0,0 @@
fun main(args: Array<String>) {
println("Hello World!")
}
@@ -1,3 +1,6 @@
@file:Suppress("PackageDirectoryMismatch")
package perfTestPackage1 // this package is mandatory
import kotlin.test.Test
import kotlin.test.assertTrue
@@ -1,11 +0,0 @@
import kotlin.test.Test
import kotlin.test.assertTrue
private const val GREETING = "Hello, Kotlin/Native!"
class HelloTest2 {
@Test
fun testHello() {
assertTrue("Kotlin/Native" in GREETING)
}
}
@@ -1,11 +0,0 @@
import kotlin.test.Test
import kotlin.test.assertTrue
private const val GREETING = "Hello, Kotlin/Native!"
class HelloTest3 {
@Test
fun testHello() {
assertTrue("Kotlin/Native" in GREETING)
}
}