mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2025-09-16 05:52:22 +00:00
first version of parameters variations
This commit is contained in:
@@ -9,8 +9,25 @@ data class Sample(
|
||||
fun sample(
|
||||
@GenerationVariant(
|
||||
"example",
|
||||
Sample::class,
|
||||
"Sample",
|
||||
"value"
|
||||
)
|
||||
example: String = "12"
|
||||
) = println(example)
|
||||
|
||||
@GenerateVariations
|
||||
suspend fun Sample.sample2(
|
||||
@GenerationVariant(
|
||||
"arg12",
|
||||
"kotlin.Int",
|
||||
"toString()"
|
||||
)
|
||||
arg1: String = "1",
|
||||
@GenerationVariant(
|
||||
"arg22",
|
||||
"kotlin.String",
|
||||
"toInt()"
|
||||
)
|
||||
arg2: Int = 2,
|
||||
arg3: Boolean = false
|
||||
) = println(arg1)
|
||||
|
Reference in New Issue
Block a user