-
Notifications
You must be signed in to change notification settings - Fork 919
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
remove mockResourceDetector #6106
Conversation
Signed-off-by: zach593 <zach_li@outlook.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #6106 +/- ##
=======================================
Coverage 48.11% 48.11%
=======================================
Files 668 668
Lines 55238 55238
=======================================
Hits 26579 26579
Misses 26928 26928
Partials 1731 1731
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
/assign @XiShanYongYe-Chang
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 mockResourceDetector is invalid due to the change of the detector BuildResourceBinding and BuildClusterResourceBinding methods. In addition, the test content shows that the mockResourceDetector is normal if the detector is not mocked.
Thanks~
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: XiShanYongYe-Chang 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 |
I'm not sure if we are talking about the same thing. After testing, these mock methods are not called at all, which is why it still could compile when the function signature is changed. As for why the mock does not take effect, it is because in the tests, |
Thanks @zach593 |
Yes, it is. 😄 |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
mockResourceDetector isn't working and we don't need it to complete the tests.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: