Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
54a1549e
Commit
54a1549e
authored
Dec 06, 2016
by
Matt Butcher
Committed by
GitHub
Dec 06, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1642 from technosophos/fix/rename_stat_vars
Fix Go style issues.
parents
02acaf12
8ca1391f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
verify_test.go
cmd/helm/verify_test.go
+8
-8
No files found.
cmd/helm/verify_test.go
100755 → 100644
View file @
54a1549e
...
@@ -24,13 +24,13 @@ import (
...
@@ -24,13 +24,13 @@ import (
func
TestVerifyCmd
(
t
*
testing
.
T
)
{
func
TestVerifyCmd
(
t
*
testing
.
T
)
{
stat
_e
xe
:=
"stat"
stat
E
xe
:=
"stat"
stat
_path_m
sg
:=
"no such file or directory"
stat
PathM
sg
:=
"no such file or directory"
stat
_file_msg
:=
stat_path_m
sg
stat
FileMsg
:=
statPathM
sg
if
runtime
.
GOOS
==
"windows"
{
if
runtime
.
GOOS
==
"windows"
{
stat
_e
xe
=
"GetFileAttributesEx"
stat
E
xe
=
"GetFileAttributesEx"
stat
_path_m
sg
=
"The system cannot find the path specified."
stat
PathM
sg
=
"The system cannot find the path specified."
stat
_file_m
sg
=
"The system cannot find the file specified."
stat
FileM
sg
=
"The system cannot find the file specified."
}
}
tests
:=
[]
struct
{
tests
:=
[]
struct
{
...
@@ -48,7 +48,7 @@ func TestVerifyCmd(t *testing.T) {
...
@@ -48,7 +48,7 @@ func TestVerifyCmd(t *testing.T) {
{
{
name
:
"verify requires that chart exists"
,
name
:
"verify requires that chart exists"
,
args
:
[]
string
{
"no/such/file"
},
args
:
[]
string
{
"no/such/file"
},
expect
:
fmt
.
Sprintf
(
"%s no/such/file: %s"
,
stat
_exe
,
stat_path_m
sg
),
expect
:
fmt
.
Sprintf
(
"%s no/such/file: %s"
,
stat
Exe
,
statPathM
sg
),
err
:
true
,
err
:
true
,
},
},
{
{
...
@@ -60,7 +60,7 @@ func TestVerifyCmd(t *testing.T) {
...
@@ -60,7 +60,7 @@ func TestVerifyCmd(t *testing.T) {
{
{
name
:
"verify requires that chart has prov file"
,
name
:
"verify requires that chart has prov file"
,
args
:
[]
string
{
"testdata/testcharts/compressedchart-0.1.0.tgz"
},
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_m
sg
),
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
,
statFileM
sg
),
err
:
true
,
err
:
true
,
},
},
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment