Repository navigation
improve test coverage - #21
Merged
Merged
Conversation
Restricted Docker workflow trigger to tags only, as whctl is primarily a CLI tool and does not need Docker container builds on every main push/PR.
…pi types Add unit tests for labels path resolution, retrieval, updates, and key validation. Add test cases for context-based fs builders, local fs error states, yaml custom marshaling errors, and custom api type marshalling edge cases.
Introduce an in-process SSH server inside client_test.go to test actual SSH authentication (both key bytes and files), command output execution (stdout streaming and return buffers), interactive TTY runs, and connection failure states deterministically.
Create unit tests for the rsync package by starting an in-process mock SSH/SFTP server. Test successful directory and file synchronization, connection errors, identity file lookup errors, filesystem read/stat failures, and remote host username parsing.
Skip OS username-fallback tests when running in platforms or CI environments (like minimal Docker containers or restricted runner setups) where user.Current() is not supported or fails.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.