Created
September 19, 2019 10:52
-
-
Save olegosipenko/b25c3caa832c047f5b2fdce848493265 to your computer and use it in GitHub Desktop.
For blog post about sealed classes, when expressions and custom detekt rule
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@DisplayName("compliant ") | |
@MethodSource("compliantProvider") | |
@ParameterizedTest(name = "{1} should not warn") | |
internal fun testCompliantWhen(source: String, whenKind: String) { | |
val findings = NonExhaustiveWhen().lint(source) | |
assertThat(findings).isEmpty() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment