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

test(errdefs): use more helpers, increase test coverage #358

Merged
merged 3 commits into from
Feb 11, 2025
Merged

Conversation

gyuho
Copy link
Collaborator

@gyuho gyuho commented Feb 5, 2025

Signed-off-by: Gyuho Lee [email protected]

@gyuho gyuho self-assigned this Feb 5, 2025
@gyuho gyuho added this to the v0.4.0 milestone Feb 5, 2025
Copy link

codecov bot commented Feb 5, 2025

Codecov Report

Attention: Patch coverage is 46.34146% with 22 lines in your changes missing coverage. Please review.

Project coverage is 23.53%. Comparing base (f909795) to head (3921950).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
client/v1/package_status.go 67.85% 6 Missing and 3 partials ⚠️
cmd/gpud/command/status.go 0.00% 4 Missing ⚠️
internal/server/handlers_components.go 0.00% 4 Missing ⚠️
internal/server/server.go 0.00% 4 Missing ⚠️
client/v1/examples/get-states/main.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #358      +/-   ##
==========================================
+ Coverage   23.41%   23.53%   +0.12%     
==========================================
  Files         287      288       +1     
  Lines       25695    25698       +3     
==========================================
+ Hits         6016     6048      +32     
+ Misses      19074    19042      -32     
- Partials      605      608       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gyuho gyuho force-pushed the errdefs branch 2 times, most recently from e9fe4c0 to 473a38f Compare February 6, 2025 14:02
@gyuho gyuho modified the milestones: v0.4.0, v0.4.1 Feb 7, 2025
client/v1/status.go Outdated Show resolved Hide resolved
@xiang90
Copy link
Contributor

xiang90 commented Feb 7, 2025

lgtm. defer to @cardyok

@gyuho gyuho force-pushed the errdefs branch 2 times, most recently from 8d85583 to 3a7b7a9 Compare February 7, 2025 10:55
@@ -0,0 +1,46 @@
package v1

import (
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should rename the file name, such as packages.go? or package_status.go? status.go is too general.

client/v1/status.go Outdated Show resolved Hide resolved
cmd/gpud/command/status.go Outdated Show resolved Hide resolved
@gyuho gyuho removed this from the v0.4.1 milestone Feb 10, 2025
return nil, err
}

httpClient := op.httpClient
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should move it to line 25

Signed-off-by: Gyuho Lee <[email protected]>
Copy link
Collaborator

@eahydra eahydra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@gyuho gyuho merged commit 1b3c8f8 into main Feb 11, 2025
15 checks passed
@gyuho gyuho deleted the errdefs branch February 11, 2025 11:56
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.

4 participants