Skip to content

test: increase test coverage for slackhttp and update - #416

Merged
mwbrooks merged 3 commits into
mainfrom
mwbrooks-test-coverage-5
Mar 19, 2026
Merged

test: increase test coverage for slackhttp and update#416
mwbrooks merged 3 commits into
mainfrom
mwbrooks-test-coverage-5

Conversation

@mwbrooks

Copy link
Copy Markdown
Member

Changelog

  • N/A

Summary

This pull request increases our test coverage for the internal/slackhttp and internal/update packages. This is a very small code coverage bump, but something-something about slow-and-steady. 🏁 🐢 💨 🍃

Requirements

Rename test functions to use full struct name (Test_UpdateNotification_*)
and reorder alphabetically by base method name with getter/setter grouping.
@mwbrooksmwbrooks added this to the Next Release milestone Mar 19, 2026
@mwbrooksmwbrooks self-assigned this Mar 19, 2026
@mwbrooksmwbrooks 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 Mar 19, 2026
@mwbrooks
mwbrooks marked this pull request as ready for review March 19, 2026 05:28
@mwbrooks
mwbrooks requested a review from a team as a code ownerMarch 19, 2026 05:28

@zimegzimeg left a comment

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.

💫 @mwbrooks Another amazing change toward coverage goals! Thank you for keeping this going!

func Test_Update_isIgnoredCommand(t *testing.T) {
func Test_UpdateNotification_SetHours(t *testing.T) {
u := &UpdateNotification{}
u.SetHours(48.0)

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: L141 + u....(48.0)

@codecov

codecovBot commented Mar 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.58%. Comparing base (90cf6bc) to head (c81bc87).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@ Coverage Diff @@## main #416 +/- ##
==========================================
+ Coverage 68.52% 68.58% +0.06% 
==========================================
Files 218 218 Lines 18162 18162 ==========================================
+ Hits 12446 12457 +11 + Misses 4554 4542 -12 - Partials 1162 1163 +1 

☔ 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

Copy link
Copy Markdown
MemberAuthor

@zimeg Thanks for the moon reviews @zimeg! 🌚 🙇🏻

@mwbrooks
mwbrooks merged commit 8b31c6a into mainMar 19, 2026
8 checks passed
@mwbrooks
mwbrooks deleted the mwbrooks-test-coverage-5 branch March 19, 2026 05:47
zimeg pushed a commit that referenced this pull request Mar 19, 2026
* test: increase test coverage for slackhttp and update
* test: rename and reorder update test functions to match conventions
Rename test functions to use full struct name (Test_UpdateNotification_*)
and reorder alphabetically by base method name with getter/setter grouping.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code healthM-T: Test improvements and anything that improves code healthsemver:patchUse on pull requests to describe the release version increment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@mwbrooks@zimeg