Skip to content

test: add unit tests for NewCLIDependency in internal/update - #783

Merged
mwbrooks merged 1 commit into
mainfrom
mwbrooks-test-new-cli-dependency
Nov 13, 2026
Merged

mwbrooks merged 1 commit into
mainfrom
mwbrooks-test-new-cli-dependency

Conversation

@mwbrooks

Copy link
Copy Markdown
Member

Changelog

N/A - adds tests only, with no user-facing changes.

Summary

This pull request adds unit tests for NewCLIDependency in internal/update/cli.go, which had no test coverage. It is one in a series of small coverage PRs.

  • Adds Test_NewCLIDependency to internal/update/cli_test.go with cases that check the clients and version are stored and no release is set yet
  • Raises internal/update coverage from 48.3% to 48.8%

Testing

  1. Run go test ./internal/update/... -run Test_NewCLIDependency -v and confirm the cases pass

Requirements

@mwbrooks
mwbrooks requested a review from a team as a code owner November 13, 2026 17:25
@mwbrooks mwbrooks added this to the Next Release milestone Nov 13, 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 Nov 13, 2026
@mwbrooks mwbrooks self-assigned this Nov 13, 2026

@zimeg zimeg 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.

✅ LGTM! Thanks for closing this coverage gap.

@mwbrooks

Copy link
Copy Markdown
Member Author

Thanks @zimeg for the quick review! 🙇

@mwbrooks
mwbrooks merged commit 44424b7 into main Nov 13, 2026
13 checks passed
@mwbrooks
mwbrooks deleted the mwbrooks-test-new-cli-dependency branch November 13, 2026 18:53
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