From 8ca1391fe876c8836284814d737735218d56e630 Mon Sep 17 00:00:00 2001 From: Matt Butcher Date: Mon, 5 Dec 2016 15:59:28 -0700 Subject: [PATCH] Fix Go style issues. --- cmd/helm/verify_test.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) mode change 100755 => 100644 cmd/helm/verify_test.go diff --git a/cmd/helm/verify_test.go b/cmd/helm/verify_test.go old mode 100755 new mode 100644 index fa248e67b..6e8b906fc --- a/cmd/helm/verify_test.go +++ b/cmd/helm/verify_test.go @@ -24,13 +24,13 @@ import ( func TestVerifyCmd(t *testing.T) { - stat_exe := "stat" - stat_path_msg := "no such file or directory" - stat_file_msg := stat_path_msg + statExe := "stat" + statPathMsg := "no such file or directory" + statFileMsg := statPathMsg if runtime.GOOS == "windows" { - stat_exe = "GetFileAttributesEx" - stat_path_msg = "The system cannot find the path specified." - stat_file_msg = "The system cannot find the file specified." + statExe = "GetFileAttributesEx" + statPathMsg = "The system cannot find the path specified." + statFileMsg = "The system cannot find the file specified." } tests := []struct { @@ -48,7 +48,7 @@ func TestVerifyCmd(t *testing.T) { { name: "verify requires that chart exists", args: []string{"no/such/file"}, - expect: fmt.Sprintf("%s no/such/file: %s", stat_exe, stat_path_msg), + expect: fmt.Sprintf("%s no/such/file: %s", statExe, statPathMsg), err: true, }, { @@ -60,7 +60,7 @@ func TestVerifyCmd(t *testing.T) { { name: "verify requires that chart has prov file", args: []string{"testdata/testcharts/compressedchart-0.1.0.tgz"}, - expect: fmt.Sprintf("could not load provenance file testdata/testcharts/compressedchart-0.1.0.tgz.prov: %s testdata/testcharts/compressedchart-0.1.0.tgz.prov: %s", stat_exe, stat_file_msg), + expect: fmt.Sprintf("could not load provenance file testdata/testcharts/compressedchart-0.1.0.tgz.prov: %s testdata/testcharts/compressedchart-0.1.0.tgz.prov: %s", statExe, statFileMsg), err: true, }, {