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
f8e97415
Commit
f8e97415
authored
Oct 03, 2017
by
Taylor Thomas
Committed by
GitHub
Oct 03, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2984 from thomastaylor312/feat/add_missing_test
fix(sorter): Adds missing unit test
parents
e3e1116e
333f8dd3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
kind_sorter_test.go
pkg/tiller/kind_sorter_test.go
+6
-2
No files found.
pkg/tiller/kind_sorter_test.go
View file @
f8e97415
...
...
@@ -49,6 +49,10 @@ func TestKindSorter(t *testing.T) {
Name
:
"r"
,
Head
:
&
util
.
SimpleHead
{
Kind
:
"Deployment"
},
},
{
Name
:
"1"
,
Head
:
&
util
.
SimpleHead
{
Kind
:
"StorageClass"
},
},
{
Name
:
"!"
,
Head
:
&
util
.
SimpleHead
{
Kind
:
"HonkyTonkSet"
},
...
...
@@ -128,8 +132,8 @@ func TestKindSorter(t *testing.T) {
order
SortOrder
expected
string
}{
{
"install"
,
InstallOrder
,
"abcdefghijklmnopqrstuvw!"
},
{
"uninstall"
,
UninstallOrder
,
"wvmutsrqponlkjihgfedcba!"
},
{
"install"
,
InstallOrder
,
"abcde
1
fghijklmnopqrstuvw!"
},
{
"uninstall"
,
UninstallOrder
,
"wvmutsrqponlkjihgf
1
edcba!"
},
}
{
var
buf
bytes
.
Buffer
t
.
Run
(
test
.
description
,
func
(
t
*
testing
.
T
)
{
...
...
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