$ the-wire · showcase
Kotlin's context-section shortener gets test coverage for malformed input
By RepoJournal · Filed · About Mobile platforms · Composed from the cited sources · methodology
JetBrains' Analysis API work on KTIJ-34163 is all test scaffolding this cycle: coverage for dangling context sections in the reference shortener, now consolidated into one folder, with no production code change.
[Analysis API] KTIJ-34163 Add tests for dangling declaration contexts JetBrains/kotlin
Shortener tests had covered only a dangling context list in a function type (`val p: context(A)`), leaving a context section with no declaration after it (`context(_: A)`) untested. The new cases span unnamed, named, multiple and nullable context parameters, a function type inside a context parameter, and a dangling section inside a class.
[Analysis API] KTIJ-34163 Test unclosed context sections JetBrains/kotlin
Adds one shortener test each for an unclosed context list in a function type and in a dangling declaration, exercising the same shortening path without a closing parenthesis. Per the commit, these "complement the existing closed-section coverage."
[Analysis API] KTIJ-34163 Move dangling context shortener tests JetBrains/kotlin
The existing shortener tests for a dangling context list in a function type move into a `danglingContextSection` folder so all such tests live together. The tests themselves are unchanged.