Skip to content

Fix KotlinDefaultArgumentsFilter for case when argument number 33 or higher has default value#1655

Merged
Godin merged 7 commits into
jacoco:masterfrom
Godin:kotlin_default_arguments
Apr 3, 2025
Merged

Fix KotlinDefaultArgumentsFilter for case when argument number 33 or higher has default value#1655
Godin merged 7 commits into
jacoco:masterfrom
Godin:kotlin_default_arguments

Conversation

@Godin

@Godin Godin commented Jul 26, 2024

Copy link
Copy Markdown
Member

Unfortunately modification in #1556 of KotlinDefaultArgumentsFilter for the case of more than 32 parameters was incomplete:

Screenshot 2024-07-27 at 00 37 54

branches are shown for class "B" because condition

takes into account only the first mask argument.

Fixes #1750

@Godin Godin added component: core.filters language: Kotlin Tickets about Kotlin language support labels Jul 26, 2024
@Godin Godin added this to the 0.8.13 milestone Jul 26, 2024
@Godin Godin self-assigned this Jul 26, 2024
@Godin Godin added this to Filtering Jul 26, 2024
@github-project-automation github-project-automation Bot moved this to Awaiting triage in Filtering Jul 26, 2024
@Godin
Godin marked this pull request as draft July 27, 2024 09:05
@Godin Godin added the type: bug 🐛 Something isn't working label Aug 5, 2024
@Godin
Godin force-pushed the kotlin_default_arguments branch from 2ca0150 to 0363397 Compare January 17, 2025 08:09
@Godin
Godin marked this pull request as ready for review January 17, 2025 08:54
@Godin
Godin requested a review from leveretka January 17, 2025 08:54

@leveretka leveretka left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Looks good!

Let's maybe update the title mentioning the fact that it's when the default argument is at the 33+ position. Took me some time to understand what changed and I still had to ask.

@Godin Godin modified the milestones: 0.8.13, 0.8.14 Apr 1, 2025
@Godin Godin changed the title Fix KotlinDefaultArgumentsFilter for the case of more than 32 parameters Fix KotlinDefaultArgumentsFilter for case when argument number 33 or higher has default value Apr 3, 2025
@Godin
Godin enabled auto-merge (squash) April 3, 2025 11:53
@Godin
Godin merged commit 32f4fc0 into jacoco:master Apr 3, 2025
@Godin
Godin deleted the kotlin_default_arguments branch April 3, 2025 12:10
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Filtering Apr 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: core.filters language: Kotlin Tickets about Kotlin language support type: bug 🐛 Something isn't working

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Function with params count > 32 is covered partially

2 participants