goharbor / goharbor/harbor-cli

Add a test Password Command.

Open
#695 3 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.