8000 cli/connhelper: cleanups and test improvements by thaJeztah · Pull Request #6022 · docker/cli · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

cli/connhelper: cleanups and test improvements #6022

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 23, 2025

Conversation

thaJeztah
Copy link
Member

I have some more changes as follow-ups, but these are some preparations for moving this package to a separate module.


cli/connhelper/ssh: TestParseURL: various improvements

  • use designated example domains as example value
  • swap "expected" and "actual" values in assertions
  • add doc / name for each test
  • add test-cases for remote commands
  • also test the Spec that's produced, not just the args
  • merge two test-cases that could be combined

cli/connhelper/ssh: improve GoDoc for ParseURL

cli/connhelper/ssh: use stdlib errors and improve errors

cli/connhelper/commandcon: use stdlib errors

cli/connhelper: use stdlib errors

- Human readable description for the release notes

- A picture of a cute animal (not mandatory but encouraged)

- use designated example domains as example value
- swap "expected" and "actual" values in assertions
- add doc / name for each test
- add test-cases for remote commands
- also test the Spec that's produced, not just the args
- merge two test-cases that could be combined

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah added status/2-code-review kind/refactor PR's that refactor, or clean-up code labels Apr 17, 2025
@thaJeztah thaJeztah added this to the 28.1.1 milestone Apr 17, 2025
@codecov-commenter
Copy link
codecov-commenter commented Apr 17, 2025

Codecov Report

Attention: Patch coverage is 95.23810% with 1 line in your changes missing coverage. Please review.

Project coverage is 58.92%. Comparing base (cf87480) to head (c771596).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6022      +/-   ##
==========================================
+ Coverage   58.89%   58.92%   +0.02%     
==========================================
  Files         358      358              
  Lines       29962    29974      +12     
==========================================
+ Hits        17647    17662      +15     
+ Misses      11334    11332       -2     
+ Partials      981      980       -1     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@thaJeztah thaJeztah requested review from laurazard and dmcgowan April 17, 2025 21:29
@thaJeztah thaJeztah modified the milestones: 28.1.1, 28.1.2 Apr 23, 2025
@thaJeztah thaJeztah merged commit 11fea00 into docker:master Apr 23, 2025
96 checks passed
@thaJeztah thaJeztah deleted the connhelper_cleanups_step1 branch April 23, 2025 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/refactor PR's that refactor, or clean-up code status/2-code-review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0