-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
Rewrite tests for tableprinter.go #82054
Conversation
Is there any reason not to use subtests for these? They usually help in identifying which case fails, and may also enable running tests in Parallel which can detect issues if the code tested is expected to run in parallel. Here's a blogpost on its tradeoffs: https://jayson.dev/blog/2019/06/table-driven-golang-subtests/ |
9519632
to
4eac893
Compare
/assign @liggitt |
one nit, lgtm otherwise |
4eac893
to
1b65c7a
Compare
/lgtm |
/retest |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: liggitt, seans3 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 |
/retest |
tableprinter.go
in preparation for moving this file out of Kubernetes core.tableprinter.go
from17.2%
to82.4%
.PrintObj()
function which transforms (mostly)Tables
to strings.PrintOptions
affects printing output./kind cleanup
/sig cli
/area kubectl
/area code-organization
/priority important-soon