commands: Fixed tests
Matt Bell committed
Oct 21, 2014 at 15:25 UTC
8786878fdb5d2eaa8ef47ed0d96fb9f813b50149
1 file changed
+6
-6
commands/command_test.go
+6
-6
@@ -8,7 +8,7 @@ func TestOptionValidation(t *testing.T) {
8
Option{[]string{"b", "beep"}, Int},
9
Option{[]string{"B", "boop"}, String},
10
},
11
- run: func(req Request, res Response) {},
11
+ Run: func(req Request, res Response) {},
12
}
13
14
req := NewEmptyRequest()
@@ -85,35 +85,35 @@ func TestRegistration(t *testing.T) {
85
Options: []Option{
86
Option{[]string{"beep"}, Int},
87
},
88
- run: noop,
88
+ Run: noop,
89
},
90
91
&Command{
92
Options: []Option{
93
Option{[]string{"boop"}, Int},
94
},
95
- run: noop,
95
+ Run: noop,
96
},
97
98
&Command{
99
Options: []Option{
100
Option{[]string{"boop"}, String},
101
},
102
- run: noop,
102
+ Run: noop,
103
},
104
105
&Command{
106
Options: []Option{
107
Option{[]string{"bop"}, String},
108
},
109
- run: noop,
109
+ Run: noop,
110
},
111
112
&Command{
113
Options: []Option{
114
Option{[]string{EncShort}, String},
115
},
116
- run: noop,
116
+ Run: noop,
117
},
118
}
119