goharbor / goharbor/harbor-cli
Add a test Password Command.
Open
- Dominant language
- Go
- Stars
- 163
- Forks
- 211
- Avg merge
- 1m
- Merged PRs (30d)
- 1
Description
**Title:** Add unit tests for password.go to improve coverage and reliability.
**Problem:**
The `password.go` file under the `root` package currently does not have any corresponding test file.
This results in missing test coverage for critical logic related to password updates and credential handling.
**Proposed Solution:**
Create a new file for unit testing password command as `password_test.go`.
This aligns `password.go` with other CLI commands that already have dedicated test files and helps maintain long-term stability of credential management logic.
Contributor guide
Assessment
This issue has not been assessed yet.