@@ -170,7 +170,7 @@ func Test_SearchCode(t *testing.T) {
170
170
assert .Contains (t , tool .InputSchema .Properties , "q" )
171
171
assert .Contains (t , tool .InputSchema .Properties , "sort" )
172
172
assert .Contains (t , tool .InputSchema .Properties , "order" )
173
- assert .Contains (t , tool .InputSchema .Properties , "per_page " )
173
+ assert .Contains (t , tool .InputSchema .Properties , "perPage " )
174
174
assert .Contains (t , tool .InputSchema .Properties , "page" )
175
175
assert .ElementsMatch (t , tool .InputSchema .Required , []string {"q" })
176
176
@@ -221,11 +221,11 @@ func Test_SearchCode(t *testing.T) {
221
221
),
222
222
),
223
223
requestArgs : map [string ]interface {}{
224
- "q" : "fmt.Println language:go" ,
225
- "sort" : "indexed" ,
226
- "order" : "desc" ,
227
- "page" : float64 (1 ),
228
- "per_page " : float64 (30 ),
224
+ "q" : "fmt.Println language:go" ,
225
+ "sort" : "indexed" ,
226
+ "order" : "desc" ,
227
+ "page" : float64 (1 ),
228
+ "perPage " : float64 (30 ),
229
229
},
230
230
expectError : false ,
231
231
expectedResult : mockSearchResult ,
@@ -321,7 +321,7 @@ func Test_SearchUsers(t *testing.T) {
321
321
assert .Contains (t , tool .InputSchema .Properties , "q" )
322
322
assert .Contains (t , tool .InputSchema .Properties , "sort" )
323
323
assert .Contains (t , tool .InputSchema .Properties , "order" )
324
- assert .Contains (t , tool .InputSchema .Properties , "per_page " )
324
+ assert .Contains (t , tool .InputSchema .Properties , "perPage " )
325
325
assert .Contains (t , tool .InputSchema .Properties , "page" )
326
326
assert .ElementsMatch (t , tool .InputSchema .Required , []string {"q" })
327
327
@@ -376,11 +376,11 @@ func Test_SearchUsers(t *testing.T) {
376
376
),
377
377
),
378
378
requestArgs : map [string ]interface {}{
379
- "q" : "location:finland language:go" ,
380
- "sort" : "followers" ,
381
- "order" : "desc" ,
382
- "page" : float64 (1 ),
383
- "per_page " : float64 (30 ),
379
+ "q" : "location:finland language:go" ,
380
+ "sort" : "followers" ,
381
+ "order" : "desc" ,
382
+ "page" : float64 (1 ),
383
+ "perPage " : float64 (30 ),
384
384
},
385
385
expectError : false ,
386
386
expectedResult : mockSearchResult ,
0 commit comments