diff options
author | Peter Hunt <pehunt@redhat.com> | 2019-10-10 20:34:29 -0400 |
---|---|---|
committer | Peter Hunt <pehunt@redhat.com> | 2019-10-11 13:12:01 -0400 |
commit | 6ad4fb0c49c5a023b94cda64c0b7c0385a17af9b (patch) | |
tree | b18c80329bad368ee1120c36ab178325025167a8 /libpod/info.go | |
parent | f39e097a815799bad704a8a1d8f16ee86f4c3602 (diff) | |
download | podman-6ad4fb0c49c5a023b94cda64c0b7c0385a17af9b.tar.gz podman-6ad4fb0c49c5a023b94cda64c0b7c0385a17af9b.tar.bz2 podman-6ad4fb0c49c5a023b94cda64c0b7c0385a17af9b.zip |
play kube: refactor test suite
The play kube test suite has many different cases to cover, and should only grow in coverage over time
The old design was difficult to extend, and there was lots of duplicated code.
The largest pain point was the Container struct needed to be changed often, and doing so caused changes every test case
Instead, adopt the `withOption` idiom. Now, adding a new option for customizing just involves adding a new withOption function, and changing the struct definition and initialization in one place.
Signed-off-by: Peter Hunt <pehunt@redhat.com>
Diffstat (limited to 'libpod/info.go')
0 files changed, 0 insertions, 0 deletions