public annotation Cases
Adds a non-empty list of argument rows to a method annotated with @Test.
Rows are executed and reported independently in source order. This annotation can be combined with repeated @Case annotations; rows are never deduplicated. The compiler checks every row against the method's parameter types. For a method with exactly one parameter, a non-tuple expression is also a row: @Cases(["Klyn", "Compiler"]) is equivalent to @Cases([("Klyn",), ("Compiler",)]). An explicit tuple always describes positional arguments; wrap a tuple value in a single-element row, for example @Cases([((1, 2),)]).
| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | value | List of argument rows, for example @Cases([(2, 4), (3, 9)]), or @Cases([2, 3]) for a method with one parameter. |