mirror of
https://github.com/status-im/consul.git
synced 2025-02-18 08:36:46 +00:00
Formatting update
This commit is contained in:
parent
ada1252480
commit
4e6f0f9a79
@ -21,8 +21,8 @@ type cmd struct {
|
|||||||
// ConfigFormat forces all config files to be interpreted as this
|
// ConfigFormat forces all config files to be interpreted as this
|
||||||
// format independent of their extension.
|
// format independent of their extension.
|
||||||
configFormat string
|
configFormat string
|
||||||
quiet bool
|
quiet bool
|
||||||
help string
|
help string
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *cmd) init() {
|
func (c *cmd) init() {
|
||||||
|
@ -50,7 +50,7 @@ func TestValidateCommand_SucceedOnMinimalConfigFile(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestValidateCommand_SucceedWithMinimalJSONConfigFormat(t * testing.T) {
|
func TestValidateCommand_SucceedWithMinimalJSONConfigFormat(t *testing.T) {
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
td := testutil.TempDir(t, "consul")
|
td := testutil.TempDir(t, "consul")
|
||||||
defer os.RemoveAll(td)
|
defer os.RemoveAll(td)
|
||||||
@ -69,7 +69,7 @@ func TestValidateCommand_SucceedWithMinimalJSONConfigFormat(t * testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestValidateCommand_SucceedWithMinimalHCLConfigFormat(t * testing.T) {
|
func TestValidateCommand_SucceedWithMinimalHCLConfigFormat(t *testing.T) {
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
td := testutil.TempDir(t, "consul")
|
td := testutil.TempDir(t, "consul")
|
||||||
defer os.RemoveAll(td)
|
defer os.RemoveAll(td)
|
||||||
@ -88,7 +88,7 @@ func TestValidateCommand_SucceedWithMinimalHCLConfigFormat(t * testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestValidateCommand_SucceedWithJSONAsHCL(t * testing.T) {
|
func TestValidateCommand_SucceedWithJSONAsHCL(t *testing.T) {
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
td := testutil.TempDir(t, "consul")
|
td := testutil.TempDir(t, "consul")
|
||||||
defer os.RemoveAll(td)
|
defer os.RemoveAll(td)
|
||||||
@ -125,7 +125,7 @@ func TestValidateCommand_SucceedOnMinimalConfigDir(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestValidateCommand_FailForInvalidJSONConfigFormat(t * testing.T) {
|
func TestValidateCommand_FailForInvalidJSONConfigFormat(t *testing.T) {
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
td := testutil.TempDir(t, "consul")
|
td := testutil.TempDir(t, "consul")
|
||||||
defer os.RemoveAll(td)
|
defer os.RemoveAll(td)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user