Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
### What's done:
* test
  • Loading branch information
diphtongue committed Dec 12, 2023
1 parent 09edb26 commit 058ff29
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,24 @@ class KdocMethodsTest : LintTestBase(::KdocMethods) {
)
}

@Test
@Tag(WarningNames.KDOC_WITHOUT_THROWS_TAG)
fun `shouldn't add @throw if exception is in catch-block`() {
lintMethod(
"""
|class Example {
| override fun toString() = "example"
|
| override fun equals(other: Any?) = false
|
| override fun hashCode() = 42
|}
|
|fun main() {}
""".trimIndent()
)
}

@Test
@Tag(WarningNames.MISSING_KDOC_TOP_LEVEL)
fun `do not force documentation on standard methods`() {
Expand Down

0 comments on commit 058ff29

Please sign in to comment.