kubernetes/pkg/kubectl/genericclioptions
Kubernetes Submit Queue debc5387fe
Merge pull request #63747 from wgliang/master.test.kubectl
Automatic merge from submit-queue. 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/kubectl)

**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
/area kubectl

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-06-20 12:39:21 -07:00
..
printers add a discarding printer for testing and delegation 2018-05-22 08:47:42 -04:00
resource Merge pull request #63747 from wgliang/master.test.kubectl 2018-06-20 12:39:21 -07:00
BUILD remove unnecessary factory delegation for RESTClientGetter method 2018-05-28 15:12:41 +02:00
builder_flags.go update set selector to use resource builder flags 2018-05-29 12:47:19 -04:00
builder_flags_fake.go add resource builder flags 2018-05-29 10:46:54 -04:00
config_flags.go start splitting polymorphic functions out of the factory 2018-05-17 08:55:31 -04:00
config_flags_fake.go remove unnecessary factory delegation for RESTClientGetter method 2018-05-28 15:12:41 +02:00
doc.go fix up record flags 2018-04-18 13:56:59 -04:00
filename_flags.go move filename flags to genericclioptions 2018-05-28 11:09:51 +02:00
io_options.go provide standard iostream struct for commands 2018-04-20 12:54:11 -04:00
json_yaml_flags.go fix kubectl -o 2018-06-05 19:49:07 +08:00
json_yaml_flags_test.go move PrintOptions to genericclioptions 2018-05-21 14:59:41 -04:00
name_flags.go fix kubectl -o 2018-06-05 19:49:07 +08:00
name_flags_test.go move PrintOptions to genericclioptions 2018-05-21 14:59:41 -04:00
print_flags.go fix kubectl -o 2018-06-05 19:49:07 +08:00
record_flags.go move f.Command out of the factory 2018-05-22 13:31:01 -04:00