Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3-cmds
Commits
4ce50539
Commit
4ce50539
authored
Oct 21, 2014
by
Matt Bell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commands: Fixed tests
parent
01f45128
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
command_test.go
command_test.go
+6
-6
No files found.
command_test.go
View file @
4ce50539
...
...
@@ -8,7 +8,7 @@ func TestOptionValidation(t *testing.T) {
Option
{[]
string
{
"b"
,
"beep"
},
Int
},
Option
{[]
string
{
"B"
,
"boop"
},
String
},
},
r
un
:
func
(
req
Request
,
res
Response
)
{},
R
un
:
func
(
req
Request
,
res
Response
)
{},
}
req
:=
NewEmptyRequest
()
...
...
@@ -85,35 +85,35 @@ func TestRegistration(t *testing.T) {
Options
:
[]
Option
{
Option
{[]
string
{
"beep"
},
Int
},
},
r
un
:
noop
,
R
un
:
noop
,
},
&
Command
{
Options
:
[]
Option
{
Option
{[]
string
{
"boop"
},
Int
},
},
r
un
:
noop
,
R
un
:
noop
,
},
&
Command
{
Options
:
[]
Option
{
Option
{[]
string
{
"boop"
},
String
},
},
r
un
:
noop
,
R
un
:
noop
,
},
&
Command
{
Options
:
[]
Option
{
Option
{[]
string
{
"bop"
},
String
},
},
r
un
:
noop
,
R
un
:
noop
,
},
&
Command
{
Options
:
[]
Option
{
Option
{[]
string
{
EncShort
},
String
},
},
r
un
:
noop
,
R
un
:
noop
,
},
}
...
...
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