@@ -16,7 +16,7 @@ import (
16
16
func Test_GetPullRequest (t * testing.T ) {
17
17
// Verify tool definition once
18
18
mockClient := github .NewClient (nil )
19
- tool , _ := getPullRequest (mockClient )
19
+ tool , _ := getPullRequest (mockClient , func ( _ string , defaultString string ) string { return defaultString } )
20
20
21
21
assert .Equal (t , "get_pull_request" , tool .Name )
22
22
assert .NotEmpty (t , tool .Description )
@@ -93,7 +93,7 @@ func Test_GetPullRequest(t *testing.T) {
93
93
t .Run (tc .name , func (t * testing.T ) {
94
94
// Setup client with mock
95
95
client := github .NewClient (tc .mockedClient )
96
- _ , handler := getPullRequest (client )
96
+ _ , handler := getPullRequest (client , func ( _ string , defaultString string ) string { return defaultString } )
97
97
98
98
// Create call request
99
99
request := createMCPRequest (tc .requestArgs )
@@ -128,7 +128,7 @@ func Test_GetPullRequest(t *testing.T) {
128
128
func Test_ListPullRequests (t * testing.T ) {
129
129
// Verify tool definition once
130
130
mockClient := github .NewClient (nil )
131
- tool , _ := listPullRequests (mockClient )
131
+ tool , _ := listPullRequests (mockClient , func ( _ string , defaultString string ) string { return defaultString } )
132
132
133
133
assert .Equal (t , "list_pull_requests" , tool .Name )
134
134
assert .NotEmpty (t , tool .Description )
@@ -212,7 +212,7 @@ func Test_ListPullRequests(t *testing.T) {
212
212
t .Run (tc .name , func (t * testing.T ) {
213
213
// Setup client with mock
214
214
client := github .NewClient (tc .mockedClient )
215
- _ , handler := listPullRequests (client )
215
+ _ , handler := listPullRequests (client , func ( _ string , defaultString string ) string { return defaultString } )
216
216
217
217
// Create call request
218
218
request := createMCPRequest (tc .requestArgs )
@@ -250,7 +250,7 @@ func Test_ListPullRequests(t *testing.T) {
250
250
func Test_MergePullRequest (t * testing.T ) {
251
251
// Verify tool definition once
252
252
mockClient := github .NewClient (nil )
253
- tool , _ := mergePullRequest (mockClient )
253
+ tool , _ := mergePullRequest (mockClient , func ( _ string , defaultString string ) string { return defaultString } )
254
254
255
255
assert .Equal (t , "merge_pull_request" , tool .Name )
256
256
assert .NotEmpty (t , tool .Description )
@@ -321,7 +321,7 @@ func Test_MergePullRequest(t *testing.T) {
321
321
t .Run (tc .name , func (t * testing.T ) {
322
322
// Setup client with mock
323
323
client := github .NewClient (tc .mockedClient )
324
- _ , handler := mergePullRequest (client )
324
+ _ , handler := mergePullRequest (client , func ( _ string , defaultString string ) string { return defaultString } )
325
325
326
326
// Create call request
327
327
request := createMCPRequest (tc .requestArgs )
@@ -355,7 +355,7 @@ func Test_MergePullRequest(t *testing.T) {
355
355
func Test_GetPullRequestFiles (t * testing.T ) {
356
356
// Verify tool definition once
357
357
mockClient := github .NewClient (nil )
358
- tool , _ := getPullRequestFiles (mockClient )
358
+ tool , _ := getPullRequestFiles (mockClient , func ( _ string , defaultString string ) string { return defaultString } )
359
359
360
360
assert .Equal (t , "get_pull_request_files" , tool .Name )
361
361
assert .NotEmpty (t , tool .Description )
@@ -433,7 +433,7 @@ func Test_GetPullRequestFiles(t *testing.T) {
433
433
t .Run (tc .name , func (t * testing.T ) {
434
434
// Setup client with mock
435
435
client := github .NewClient (tc .mockedClient )
436
- _ , handler := getPullRequestFiles (client )
436
+ _ , handler := getPullRequestFiles (client , func ( _ string , defaultString string ) string { return defaultString } )
437
437
438
438
// Create call request
439
439
request := createMCPRequest (tc .requestArgs )
@@ -471,7 +471,7 @@ func Test_GetPullRequestFiles(t *testing.T) {
471
471
func Test_GetPullRequestStatus (t * testing.T ) {
472
472
// Verify tool definition once
473
473
mockClient := github .NewClient (nil )
474
- tool , _ := getPullRequestStatus (mockClient )
474
+ tool , _ := getPullRequestStatus (mockClient , func ( _ string , defaultString string ) string { return defaultString } )
475
475
476
476
assert .Equal (t , "get_pull_request_status" , tool .Name )
477
477
assert .NotEmpty (t , tool .Description )
@@ -593,7 +593,7 @@ func Test_GetPullRequestStatus(t *testing.T) {
593
593
t .Run (tc .name , func (t * testing.T ) {
594
594
// Setup client with mock
595
595
client := github .NewClient (tc .mockedClient )
596
- _ , handler := getPullRequestStatus (client )
596
+ _ , handler := getPullRequestStatus (client , func ( _ string , defaultString string ) string { return defaultString } )
597
597
598
598
// Create call request
599
599
request := createMCPRequest (tc .requestArgs )
@@ -632,7 +632,7 @@ func Test_GetPullRequestStatus(t *testing.T) {
632
632
func Test_UpdatePullRequestBranch (t * testing.T ) {
633
633
// Verify tool definition once
634
634
mockClient := github .NewClient (nil )
635
- tool , _ := updatePullRequestBranch (mockClient )
635
+ tool , _ := updatePullRequestBranch (mockClient , func ( _ string , defaultString string ) string { return defaultString } )
636
636
637
637
assert .Equal (t , "update_pull_request_branch" , tool .Name )
638
638
assert .NotEmpty (t , tool .Description )
@@ -714,7 +714,7 @@ func Test_UpdatePullRequestBranch(t *testing.T) {
714
714
t .Run (tc .name , func (t * testing.T ) {
715
715
// Setup client with mock
716
716
client := github .NewClient (tc .mockedClient )
717
- _ , handler := updatePullRequestBranch (client )
717
+ _ , handler := updatePullRequestBranch (client , func ( _ string , defaultString string ) string { return defaultString } )
718
718
719
719
// Create call request
720
720
request := createMCPRequest (tc .requestArgs )
@@ -742,7 +742,7 @@ func Test_UpdatePullRequestBranch(t *testing.T) {
742
742
func Test_GetPullRequestComments (t * testing.T ) {
743
743
// Verify tool definition once
744
744
mockClient := github .NewClient (nil )
745
- tool , _ := getPullRequestComments (mockClient )
745
+ tool , _ := getPullRequestComments (mockClient , func ( _ string , defaultString string ) string { return defaultString } )
746
746
747
747
assert .Equal (t , "get_pull_request_comments" , tool .Name )
748
748
assert .NotEmpty (t , tool .Description )
@@ -830,7 +830,7 @@ func Test_GetPullRequestComments(t *testing.T) {
830
830
t .Run (tc .name , func (t * testing.T ) {
831
831
// Setup client with mock
832
832
client := github .NewClient (tc .mockedClient )
833
- _ , handler := getPullRequestComments (client )
833
+ _ , handler := getPullRequestComments (client , func ( _ string , defaultString string ) string { return defaultString } )
834
834
835
835
// Create call request
836
836
request := createMCPRequest (tc .requestArgs )
@@ -869,7 +869,7 @@ func Test_GetPullRequestComments(t *testing.T) {
869
869
func Test_GetPullRequestReviews (t * testing.T ) {
870
870
// Verify tool definition once
871
871
mockClient := github .NewClient (nil )
872
- tool , _ := getPullRequestReviews (mockClient )
872
+ tool , _ := getPullRequestReviews (mockClient , func ( _ string , defaultString string ) string { return defaultString } )
873
873
874
874
assert .Equal (t , "get_pull_request_reviews" , tool .Name )
875
875
assert .NotEmpty (t , tool .Description )
@@ -953,7 +953,7 @@ func Test_GetPullRequestReviews(t *testing.T) {
953
953
t .Run (tc .name , func (t * testing.T ) {
954
954
// Setup client with mock
955
955
client := github .NewClient (tc .mockedClient )
956
- _ , handler := getPullRequestReviews (client )
956
+ _ , handler := getPullRequestReviews (client , func ( _ string , defaultString string ) string { return defaultString } )
957
957
958
958
// Create call request
959
959
request := createMCPRequest (tc .requestArgs )
0 commit comments