airshipctl/cmd/config
Alan Meadows 16bc0cc81c Properly locate tests within a config_test pkg for pkg/config and cmd/config
This relocates tests that were improperly placed within the config pkg for both
the pkg/config and cmd/config packages. These were causing testutil to be imported
outside of tests causing a cyclic import issue when trying to import the config
pkg within the document pkg.

This patchset moves the tests as well as refactoring several of them where they
were leveraging private attributes which cannot be accessed as an external test
pkg.

Closes: #109
Relates-To: #107

Change-Id: Ib1bf2aff020599ba0b3f5a7fd7fadf737b8c86b8
2020-03-11 16:21:57 -07:00
..
testdata [#38] Add end-user documentation to project 2020-03-10 16:45:19 +00:00
config_test.go Properly locate tests within a config_test pkg for pkg/config and cmd/config 2020-03-11 16:21:57 -07:00
config.go [#56] Add use-context subcommand 2020-02-26 10:35:13 -06:00
get_authinfo_test.go [#58] Update error strings to be golint compliant 2020-02-28 16:31:53 -05:00
get_authinfo.go [#38] Add end-user documentation to project 2020-03-10 16:45:19 +00:00
get_cluster_test.go [#58] Update error strings to be golint compliant 2020-02-28 16:31:53 -05:00
get_cluster.go [#42] Refactor flag operations to be uniform 2020-02-20 11:25:41 -06:00
get_context_test.go Fix various code style issues 2020-02-07 09:28:18 -06:00
get_context.go [#42] Refactor flag operations to be uniform 2020-02-20 11:25:41 -06:00
init_test.go [#6] Add config init subcommand 2020-02-17 16:22:10 -06:00
init.go [#6] Add config init subcommand 2020-02-17 16:22:10 -06:00
set_authinfo_test.go Properly locate tests within a config_test pkg for pkg/config and cmd/config 2020-03-11 16:21:57 -07:00
set_authinfo.go [#38] Add end-user documentation to project 2020-03-10 16:45:19 +00:00
set_cluster_test.go Properly locate tests within a config_test pkg for pkg/config and cmd/config 2020-03-11 16:21:57 -07:00
set_cluster.go [#42] Refactor flag operations to be uniform 2020-02-20 11:25:41 -06:00
set_context_test.go Properly locate tests within a config_test pkg for pkg/config and cmd/config 2020-03-11 16:21:57 -07:00
set_context.go [#74] - args for set-context is optional 2020-03-02 17:06:11 +00:00
use_context_test.go Properly locate tests within a config_test pkg for pkg/config and cmd/config 2020-03-11 16:21:57 -07:00
use_context.go [#56] Add use-context subcommand 2020-02-26 10:35:13 -06:00