Skip to content

Conversation

@jwren
Copy link
Member

@jwren jwren commented Jan 7, 2026

Adds DartNameSuggesterUtilTest to verify variable name generation logic. Coverage verified using the Kover Gradle plugin.

Coverage Improvement:

  • DartNameSuggesterUtil: ~45% line coverage (23 covered, 28 uncovered).

Adds `DartNameSuggesterUtilTest` to verify variable name generation logic.
Coverage verified using the Kover Gradle plugin.

Coverage Improvement:
- `DartNameSuggesterUtil`: ~45% line coverage (23 covered, 28 uncovered).
@jwren
Copy link
Member Author

jwren commented Jan 7, 2026

@pq --- you were asking how we might be able to use the coverage data, see the commit message :)

@jwren jwren requested review from helin24 and pq January 7, 2026 04:47
assertContainsOrdered(DartNameSuggesterUtil.generateNames("_private"), "private");
}

private void assertContainsOrdered(Collection<String> actual, String... expected) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Consider removing in favor of using the already existent assertOrderedEquals in UsefulTestCase?

@pq
Copy link
Collaborator

pq commented Jan 7, 2026

you were asking how we might be able to use the coverage data, see the commit message :)

Cool. Thanks!

Copy link
Collaborator

@pq pq left a comment

Choose a reason for hiding this comment

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

Actually, it looks like this class is unused.

We'd get 100% coverage by removing it! :D

@pq
Copy link
Collaborator

pq commented Jan 7, 2026

Additional feedback: maybe consider adding something to your prompt that checks for usages first? Or maybe we consider another sweep of dead code?

It'd be a drag to add a bunch of tests for unused functionality; better to remove it altogether IMO.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants