Skip to content

refactor(tests): convert the low-risk slice-to-map table tests#321

Merged
mwbrooks merged 9 commits intomainfrom
mwbrooks-table-test-consistent-p4-low-risk
Feb 2, 2026
Merged

refactor(tests): convert the low-risk slice-to-map table tests#321
mwbrooks merged 9 commits intomainfrom
mwbrooks-table-test-consistent-p4-low-risk

Conversation

@mwbrooks
Copy link
Copy Markdown
Member

@mwbrooks mwbrooks commented Jan 31, 2026

Summary

Related to #315, #316, #320

This pull request refactors the remaining low-risk Table Tests from the Slice-to-Map Pattern. It's focused on simple struct conversions with no setup or teardown functions.

Reviewers

Hoping this is a easy, casual read for you. 📚 🎵

Requirements

@mwbrooks mwbrooks added this to the Next Release milestone Jan 31, 2026
@mwbrooks mwbrooks self-assigned this Jan 31, 2026
@mwbrooks mwbrooks added code health M-T: Test improvements and anything that improves code health semver:patch Use on pull requests to describe the release version increment labels Jan 31, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Jan 31, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 64.62%. Comparing base (2da1d1a) to head (86e224c).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #321      +/-   ##
==========================================
+ Coverage   64.61%   64.62%   +0.01%     
==========================================
  Files         212      212              
  Lines       17755    17755              
==========================================
+ Hits        11472    11475       +3     
+ Misses       5207     5206       -1     
+ Partials     1076     1074       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mwbrooks mwbrooks changed the base branch from main to mwbrooks-table-test-consistent-p3-slice-to-map-simple January 31, 2026 06:48
Base automatically changed from mwbrooks-table-test-consistent-p3-slice-to-map-simple to main February 2, 2026 19:22
@mwbrooks mwbrooks marked this pull request as ready for review February 2, 2026 19:29
@mwbrooks mwbrooks requested a review from a team as a code owner February 2, 2026 19:29
Copy link
Copy Markdown
Member

@zimeg zimeg left a comment

Choose a reason for hiding this comment

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

@mwbrooks Another wonderful PR that moves code health ever healthier! Thanks for sharing this 🌲

expectedString: "(#general)",
},
// TODO(@mbrooks) This test represents the current behaviour, but should the expectedString be "C01234" instead?
// This test represents the current behaviour, but should the expectedString be "C01234" instead?
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

⭐ praise: Thanks for keeping note of this! Calling out strange but expected behavior IMHO is so useful in later refactors with assumptions removed of the unknown!

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Agreed! Documenting unexpected-expected behaviour can save us maintainers a huge amount of mental load. Since we don't have an immediate plan to change this, I thought I'd remove the TODO pointing back at myself 😆

@mwbrooks
Copy link
Copy Markdown
Member Author

mwbrooks commented Feb 2, 2026

@zimeg Thanks again for the review! 🙇🏻 Really appreciate the quick eyes and kind words!

@mwbrooks mwbrooks merged commit 3f37a5a into main Feb 2, 2026
8 checks passed
@mwbrooks mwbrooks deleted the mwbrooks-table-test-consistent-p4-low-risk branch February 2, 2026 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code health M-T: Test improvements and anything that improves code health semver:patch Use on pull requests to describe the release version increment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants