Skip to content

Commit

Permalink
Update annotations.md (#3259)
Browse files Browse the repository at this point in the history
  • Loading branch information
anouard committed Oct 26, 2022
1 parent d71a344 commit 55257df
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -40,7 +40,7 @@ to determine if a spec is enabled. Note that implementations must have a zero ar
For example, we may wish to only execute tests containing the name "Linux" when run on a Linux machine.

```kotlin
class LinuxOnlyCondition : EnabledCondition() {
class LinuxOnlyCondition : EnabledCondition {
override fun enabled(kclass: KClass<out Spec>): Boolean = when {
kclass.simpleName?.contains("Linux") == true -> IS_OS_LINUX
else -> true // non Linux tests always run
Expand Down

0 comments on commit 55257df

Please sign in to comment.