Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
86e2d2bf
Unverified
Commit
86e2d2bf
authored
Oct 24, 2018
by
k8s-ci-robot
Committed by
GitHub
Oct 24, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #69587 from jonfriesen/fix_golint_tests
Fixes golint for test/list
parents
4cbeddd7
65ada74b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
.golint_failures
hack/.golint_failures
+0
-1
main.go
test/list/main.go
+3
-2
No files found.
hack/.golint_failures
View file @
86e2d2bf
...
@@ -777,6 +777,5 @@ test/integration/replicationcontroller
...
@@ -777,6 +777,5 @@ test/integration/replicationcontroller
test/integration/scheduler
test/integration/scheduler
test/integration/scheduler_perf
test/integration/scheduler_perf
test/integration/volume
test/integration/volume
test/list
test/utils
test/utils
test/utils/image
test/utils/image
test/list/main.go
View file @
86e2d2bf
...
@@ -33,10 +33,11 @@ import (
...
@@ -33,10 +33,11 @@ import (
var
(
var
(
dumpTree
=
flag
.
Bool
(
"dump"
,
false
,
"print AST"
)
dumpTree
=
flag
.
Bool
(
"dump"
,
false
,
"print AST"
)
dumpJ
son
=
flag
.
Bool
(
"json"
,
false
,
"output test list as JSON"
)
dumpJ
SON
=
flag
.
Bool
(
"json"
,
false
,
"output test list as JSON"
)
warn
=
flag
.
Bool
(
"warn"
,
false
,
"print warnings"
)
warn
=
flag
.
Bool
(
"warn"
,
false
,
"print warnings"
)
)
)
// Test holds test locations, package names, and test names.
type
Test
struct
{
type
Test
struct
{
Loc
string
Loc
string
Name
string
Name
string
...
@@ -262,7 +263,7 @@ func main() {
...
@@ -262,7 +263,7 @@ func main() {
log
.
Fatalf
(
"Error walking: %v"
,
err
)
log
.
Fatalf
(
"Error walking: %v"
,
err
)
}
}
}
}
if
*
dumpJ
son
{
if
*
dumpJ
SON
{
json
,
err
:=
json
.
Marshal
(
tests
.
tests
)
json
,
err
:=
json
.
Marshal
(
tests
.
tests
)
if
err
!=
nil
{
if
err
!=
nil
{
log
.
Fatal
(
err
)
log
.
Fatal
(
err
)
...
...
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