Skip to content
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

Add unit tests and comments to the name package #424

Merged
merged 2 commits into from
May 10, 2024

Conversation

JonCrowther
Copy link
Contributor

Just some minor tech debt. Add comments to each of the exported functions. A lot of these functions are not great (would prefer to return errors), but since they're exported we should at minimum provide comments.

I added some unit tests to SafeConcatName because I've used it extensively elsewhere so I want to make sure it doesn't get broken accidentally.

@JonCrowther JonCrowther self-assigned this Apr 29, 2024
@JonCrowther JonCrowther requested a review from a team as a code owner April 29, 2024 20:48
pkg/name/name_test.go Show resolved Hide resolved
pkg/name/name_test.go Show resolved Hide resolved
pkg/name/name.go Show resolved Hide resolved
pkg/name/name_test.go Outdated Show resolved Hide resolved
pkg/name/name.go Outdated Show resolved Hide resolved
@JonCrowther JonCrowther merged commit 652f4c9 into rancher:master May 10, 2024
1 check passed
@JonCrowther JonCrowther deleted the improve-name-package branch May 10, 2024 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants