-
Notifications
You must be signed in to change notification settings - Fork 204
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 Test Cases for slices package #1084
Add Test Cases for slices package #1084
Conversation
Signed-off-by: Joeyyy09 <[email protected]>
@joeyyy09: The label(s) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Welcome @joeyyy09! |
Hi @joeyyy09. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
✅ Deploy Preview for k8s-kwok canceled.
|
Signed-off-by: Joeyyy09 <[email protected]>
I updated the interface settings from args[S interface{ ~[]T }, T comparable] struct { to testCase[S ~[]T, T comparable] struct { for clarity and consistency. This change simplifies the interface definition while still ensuring that the types remain compatible with the requirements of the test cases. By using testCase instead of args, it more accurately reflects the purpose of the struct in the context of our test cases. |
I modified the error handling logic to combine the error check with the condition for os.IsNotExist(err). This change simplifies the control flow by reducing nesting and makes the code easier to read. Now, if the error is not nil and not related to file not found (os.IsNotExist), we handle it accordingly. This refactor helped fix the linting issues i was facing |
/ok-to-test |
It breaks the original logic, and I'm not sure the unit test covered this change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test is look good, then revert content that is not in the title.
Signed-off-by: Joeyyy09 <[email protected]>
Yeah, i've reverted back the changes |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: joeyyy09, wzshiming The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* Add Test Cases for slices package Signed-off-by: Joeyyy09 <[email protected]> * Fix linting issues Signed-off-by: Joeyyy09 <[email protected]> * Fix linting issues Signed-off-by: Joeyyy09 <[email protected]> --------- Signed-off-by: Joeyyy09 <[email protected]> adding sets_test.go
* Add Test Cases for slices package Signed-off-by: Joeyyy09 <[email protected]> * Fix linting issues Signed-off-by: Joeyyy09 <[email protected]> * Fix linting issues Signed-off-by: Joeyyy09 <[email protected]> --------- Signed-off-by: Joeyyy09 <[email protected]>
What type of PR is this?
/kind test
What this PR does / why we need it:
Adds comprehensive test cases for the slices package to ensure thorough coverage and functionality.
Special notes for your reviewer:
N/A
Does this PR introduce a user-facing change?
No.
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:
NONE