[K/N][tests] Migrate link tests to new testing infra ^KT-61259
This commit is contained in:
committed by
Space Team
parent
588549d1d0
commit
d6a922bc74
@@ -1,8 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
|
||||
* that can be found in the LICENSE file.
|
||||
*/
|
||||
|
||||
fun foo() {
|
||||
println("linked library")
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
|
||||
* that can be found in the LICENSE file.
|
||||
*/
|
||||
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
foo()
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
linked library
|
||||
@@ -1,12 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
|
||||
* that can be found in the LICENSE file.
|
||||
*/
|
||||
|
||||
package qwerty
|
||||
|
||||
fun foo(a: Int): Int {
|
||||
return a
|
||||
}
|
||||
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
|
||||
* that can be found in the LICENSE file.
|
||||
*/
|
||||
|
||||
package qwerty
|
||||
|
||||
fun foo2(a: Int): Int {
|
||||
return a
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
|
||||
* that can be found in the LICENSE file.
|
||||
*/
|
||||
|
||||
package foo
|
||||
fun foo() {}
|
||||
@@ -1,8 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
|
||||
* that can be found in the LICENSE file.
|
||||
*/
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
println("Hello")
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
Hello
|
||||
@@ -1,53 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
|
||||
* that can be found in the LICENSE file.
|
||||
*/
|
||||
|
||||
// Private classes
|
||||
private open class A {
|
||||
public fun foo1() = println("PASS")
|
||||
internal fun foo2() = println("PASS")
|
||||
protected fun foo3() = println("PASS")
|
||||
}
|
||||
|
||||
private class B:A() {
|
||||
fun foo4() = foo3()
|
||||
}
|
||||
|
||||
// Private interfaces
|
||||
private interface C {
|
||||
fun foo() = println("PASS")
|
||||
}
|
||||
|
||||
private class D: C
|
||||
|
||||
fun runner() {
|
||||
B().foo1()
|
||||
B().foo2()
|
||||
B().foo4()
|
||||
|
||||
D().foo()
|
||||
|
||||
// Objects
|
||||
object : A(){
|
||||
fun foo4() = foo3()
|
||||
}.apply {
|
||||
foo1()
|
||||
foo2()
|
||||
foo4()
|
||||
}
|
||||
|
||||
// Function local classes
|
||||
abstract class E {
|
||||
public open fun foo1() = println("PASS")
|
||||
internal open fun foo2() = println("PASS")
|
||||
protected open fun foo3() = println("PASS")
|
||||
}
|
||||
class F : E() {
|
||||
fun foo4() = foo3()
|
||||
}
|
||||
F().foo1()
|
||||
F().foo2()
|
||||
F().foo4()
|
||||
}
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
|
||||
* that can be found in the LICENSE file.
|
||||
*/
|
||||
|
||||
fun main() {
|
||||
runner()
|
||||
}
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
PASS
|
||||
PASS
|
||||
PASS
|
||||
PASS
|
||||
PASS
|
||||
PASS
|
||||
PASS
|
||||
PASS
|
||||
PASS
|
||||
PASS
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
|
||||
* that can be found in the LICENSE file.
|
||||
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
@file:OptIn(kotlinx.cinterop.ExperimentalForeignApi::class)
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
|
||||
* that can be found in the LICENSE file.
|
||||
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
|
||||
* that can be found in the LICENSE file.
|
||||
*/
|
||||
|
||||
import qwerty.*
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
val size = foo(foo2(args.size))
|
||||
println(size.toString())
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
0
|
||||
Reference in New Issue
Block a user