kubernetes/pkg/printers
Kubernetes Submit Queue a915811a98
Merge pull request #63776 from wgliang/master.test-printers
Automatic merge from submit-queue (batch tested with PRs 63770, 63776, 64001, 64028, 63984). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

use subtest for table units (pkg/printers)

**What this PR does / why we need it**:

Go 1.7 added the subtest feature which can make table-driven tests much easier to run and debug. Many table-driven tests in pkg/kubectl are not using this feature.

/kind cleanup

Further reading: [Using Subtests and Sub-benchmarks](https://blog.golang.org/subtests)

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #

**Special notes for your reviewer**:

**Release note**:

```release-note
NONE
```
2018-05-19 02:11:30 -07:00
..
internalversion Merge pull request #63776 from wgliang/master.test-printers 2018-05-19 02:11:30 -07:00
storage replace request.Context with context.Context 2018-04-24 08:59:00 -07:00
.import-restrictions Restrict imports for printers 2017-02-23 00:28:31 -05:00
BUILD move type setting into an optional layer above normal printing 2018-05-17 17:22:12 -04:00
customcolumn.go fail printing on internal obj 2018-05-11 14:54:37 -04:00
customcolumn_flags.go remove versioned printer 2018-05-17 17:20:54 -04:00
customcolumn_flags_test.go wire PrintFlags through get cmd 2018-04-25 15:02:48 -04:00
customcolumn_test.go use subtest for table units (pkg/printers) 2018-05-14 15:11:48 +08:00
flags.go move type setting into an optional layer above normal printing 2018-05-17 17:22:12 -04:00
flags_test.go fail printing on internal obj 2018-05-11 14:54:37 -04:00
humanreadable.go slim down printer interface 2018-05-04 11:15:35 -04:00
humanreadable_test.go use subtest for table units (pkg/printers) 2018-05-14 15:11:48 +08:00
interface.go slim down printer interface 2018-05-04 11:15:35 -04:00
json.go add protection for missing apiversion so we never serialize a bad object 2018-05-17 17:20:54 -04:00
json_yaml_flags.go move type setting into an optional layer above normal printing 2018-05-17 17:22:12 -04:00
json_yaml_flags_test.go move type setting into an optional layer above normal printing 2018-05-17 17:22:12 -04:00
jsonpath.go fail printing on internal obj 2018-05-11 14:54:37 -04:00
jsonpath_flags.go report outputFormat in PrintFlags err 2018-04-25 16:35:56 -04:00
jsonpath_flags_test.go begin wiring printopts through complete commands 2018-04-13 11:50:54 -04:00
kube_template_flags.go begin wiring printopts through complete commands 2018-04-13 11:50:54 -04:00
name.go move type setting into an optional layer above normal printing 2018-05-17 17:22:12 -04:00
name_flags.go move type setting into an optional layer above normal printing 2018-05-17 17:22:12 -04:00
name_flags_test.go move type setting into an optional layer above normal printing 2018-05-17 17:22:12 -04:00
OWNERS Add pkg/printers OWNERS 2017-03-07 22:28:27 -05:00
tabwriter.go Refactor printers to separate typed printers from generic code 2017-02-23 00:28:30 -05:00
template.go fail printing on internal obj 2018-05-11 14:54:37 -04:00
template_flags.go report outputFormat in PrintFlags err 2018-04-25 16:35:56 -04:00
template_flags_test.go begin wiring printopts through complete commands 2018-04-13 11:50:54 -04:00
template_test.go use subtest for table units (pkg/printers) 2018-05-14 15:11:48 +08:00
typesetter.go move type setting into an optional layer above normal printing 2018-05-17 17:22:12 -04:00