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
65ada74b
Commit
65ada74b
authored
Oct 09, 2018
by
Jon Friesen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes golint for test/list
Fixes minor golint errors in the test/list tool. ref: #68026
parent
48086eb7
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 @
65ada74b
...
...
@@ -792,6 +792,5 @@ test/integration/replicationcontroller
test/integration/scheduler
test/integration/scheduler_perf
test/integration/volume
test/list
test/utils
test/utils/image
test/list/main.go
View file @
65ada74b
...
...
@@ -33,10 +33,11 @@ import (
var
(
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"
)
)
// Test holds test locations, package names, and test names.
type
Test
struct
{
Loc
string
Name
string
...
...
@@ -262,7 +263,7 @@ func main() {
log
.
Fatalf
(
"Error walking: %v"
,
err
)
}
}
if
*
dumpJ
son
{
if
*
dumpJ
SON
{
json
,
err
:=
json
.
Marshal
(
tests
.
tests
)
if
err
!=
nil
{
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