[Tests] Add javadoc for @TestMetadata

Merge-request: KT-MR-13338
Merged-by: Evgenii Mazhukin <evgenii.mazhukin@jetbrains.com>
This commit is contained in:
Evgenii Mazhukin
2023-12-04 17:29:42 +00:00
committed by Space Team
parent 776926518d
commit 834602b737
2 changed files with 24 additions and 0 deletions
@@ -11,11 +11,21 @@ import java.util.concurrent.atomic.AtomicInteger
import kotlin.io.path.appendText
/**
* Appends top-level `private val` to the content of the file.
* Throws SecurityException or IOException, if append failed.
* Every call to [addPrivateVal] or [addPublicVal] generates a new value name.
*/
fun Path.addPrivateVal(): Path {
appendText("\nprivate val integerValue${changeCounter.incrementAndGet()} = 24\n")
return this
}
/**
* Appends top-level `public val` to the content of the file.
* Throws SecurityException or IOException, if append failed.
* Every call to [addPrivateVal] or [addPublicVal] generates a new value name.
*/
fun Path.addPublicVal(): Path {
appendText("\nval integerValue${changeCounter.incrementAndGet()} = 25\n")
return this