-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Unexport RPRT member functions used within resources pkg only #4949
Conversation
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.
/lgtm
🎉
/kind cleanup |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dibyom 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 |
/test pull-tekton-pipeline-go-coverage |
/test tekton-pipeline-unit-tests |
Some member functions of ResolvedPipelineRunTask are exported but they are used within the resources package only: `IsDone`, `IsSuccessful`, `IsFailure`, `IsRunning` `HasRemainingRetries`, `IsCancelled`, `IsConditionStatusFalse`, and `IsStarted`. These functions, except `IsDone`, are not tested but the exported functions that use them within the resources package are tested. In this change, we unexport the above member functions that are used within resources package only. We do not add tests for the now-unexported functions as recommended in [guidelines][guidelines], but we can add them later if we change the guideline. [guidelines]: https://github.com/tektoncd/community/blob/ac0ae1b304ef515e8099f772f42b91aac1b26e6b/standards.md#tests
b5971a6
to
7acf653
Compare
/retest |
/lgtm |
/retest |
Changes
Some member functions of ResolvedPipelineRunTask are exported but they are used within the resources package only:
IsDone
,IsSuccessful
,IsFailure
,IsRunning
,HasRemainingRetries
,IsCancelled
,IsConditionStatusFalse
, andIsStarted
.These functions, except
IsDone
, are not tested but the exported functions that use them within the resources package are tested.In this change, we unexport the above member functions that are used within resources package only. We do not add tests for the now-unexported functions as recommended in guidelines, but we can add them later if we change the guidelines.
Follow up to refactor done in PR: #4943
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
functionality, content, code)
Release Notes
cc @pritidesai