@@ -16,7 +16,7 @@ import (
1616func Test_GetPullRequest (t * testing.T ) {
1717 // Verify tool definition once
1818 mockClient := github .NewClient (nil )
19- tool , _ := getPullRequest (mockClient )
19+ tool , _ := getPullRequest (mockClient , func ( _ string , defaultString string ) string { return defaultString } )
2020
2121 assert .Equal (t , "get_pull_request" , tool .Name )
2222 assert .NotEmpty (t , tool .Description )
@@ -93,7 +93,7 @@ func Test_GetPullRequest(t *testing.T) {
9393 t .Run (tc .name , func (t * testing.T ) {
9494 // Setup client with mock
9595 client := github .NewClient (tc .mockedClient )
96- _ , handler := getPullRequest (client )
96+ _ , handler := getPullRequest (client , func ( _ string , defaultString string ) string { return defaultString } )
9797
9898 // Create call request
9999 request := createMCPRequest (tc .requestArgs )
@@ -128,7 +128,7 @@ func Test_GetPullRequest(t *testing.T) {
128128func Test_ListPullRequests (t * testing.T ) {
129129 // Verify tool definition once
130130 mockClient := github .NewClient (nil )
131- tool , _ := listPullRequests (mockClient )
131+ tool , _ := listPullRequests (mockClient , func ( _ string , defaultString string ) string { return defaultString } )
132132
133133 assert .Equal (t , "list_pull_requests" , tool .Name )
134134 assert .NotEmpty (t , tool .Description )
@@ -212,7 +212,7 @@ func Test_ListPullRequests(t *testing.T) {
212212 t .Run (tc .name , func (t * testing.T ) {
213213 // Setup client with mock
214214 client := github .NewClient (tc .mockedClient )
215- _ , handler := listPullRequests (client )
215+ _ , handler := listPullRequests (client , func ( _ string , defaultString string ) string { return defaultString } )
216216
217217 // Create call request
218218 request := createMCPRequest (tc .requestArgs )
@@ -250,7 +250,7 @@ func Test_ListPullRequests(t *testing.T) {
250250func Test_MergePullRequest (t * testing.T ) {
251251 // Verify tool definition once
252252 mockClient := github .NewClient (nil )
253- tool , _ := mergePullRequest (mockClient )
253+ tool , _ := mergePullRequest (mockClient , func ( _ string , defaultString string ) string { return defaultString } )
254254
255255 assert .Equal (t , "merge_pull_request" , tool .Name )
256256 assert .NotEmpty (t , tool .Description )
@@ -321,7 +321,7 @@ func Test_MergePullRequest(t *testing.T) {
321321 t .Run (tc .name , func (t * testing.T ) {
322322 // Setup client with mock
323323 client := github .NewClient (tc .mockedClient )
324- _ , handler := mergePullRequest (client )
324+ _ , handler := mergePullRequest (client , func ( _ string , defaultString string ) string { return defaultString } )
325325
326326 // Create call request
327327 request := createMCPRequest (tc .requestArgs )
@@ -355,7 +355,7 @@ func Test_MergePullRequest(t *testing.T) {
355355func Test_GetPullRequestFiles (t * testing.T ) {
356356 // Verify tool definition once
357357 mockClient := github .NewClient (nil )
358- tool , _ := getPullRequestFiles (mockClient )
358+ tool , _ := getPullRequestFiles (mockClient , func ( _ string , defaultString string ) string { return defaultString } )
359359
360360 assert .Equal (t , "get_pull_request_files" , tool .Name )
361361 assert .NotEmpty (t , tool .Description )
@@ -433,7 +433,7 @@ func Test_GetPullRequestFiles(t *testing.T) {
433433 t .Run (tc .name , func (t * testing.T ) {
434434 // Setup client with mock
435435 client := github .NewClient (tc .mockedClient )
436- _ , handler := getPullRequestFiles (client )
436+ _ , handler := getPullRequestFiles (client , func ( _ string , defaultString string ) string { return defaultString } )
437437
438438 // Create call request
439439 request := createMCPRequest (tc .requestArgs )
@@ -471,7 +471,7 @@ func Test_GetPullRequestFiles(t *testing.T) {
471471func Test_GetPullRequestStatus (t * testing.T ) {
472472 // Verify tool definition once
473473 mockClient := github .NewClient (nil )
474- tool , _ := getPullRequestStatus (mockClient )
474+ tool , _ := getPullRequestStatus (mockClient , func ( _ string , defaultString string ) string { return defaultString } )
475475
476476 assert .Equal (t , "get_pull_request_status" , tool .Name )
477477 assert .NotEmpty (t , tool .Description )
@@ -593,7 +593,7 @@ func Test_GetPullRequestStatus(t *testing.T) {
593593 t .Run (tc .name , func (t * testing.T ) {
594594 // Setup client with mock
595595 client := github .NewClient (tc .mockedClient )
596- _ , handler := getPullRequestStatus (client )
596+ _ , handler := getPullRequestStatus (client , func ( _ string , defaultString string ) string { return defaultString } )
597597
598598 // Create call request
599599 request := createMCPRequest (tc .requestArgs )
@@ -632,7 +632,7 @@ func Test_GetPullRequestStatus(t *testing.T) {
632632func Test_UpdatePullRequestBranch (t * testing.T ) {
633633 // Verify tool definition once
634634 mockClient := github .NewClient (nil )
635- tool , _ := updatePullRequestBranch (mockClient )
635+ tool , _ := updatePullRequestBranch (mockClient , func ( _ string , defaultString string ) string { return defaultString } )
636636
637637 assert .Equal (t , "update_pull_request_branch" , tool .Name )
638638 assert .NotEmpty (t , tool .Description )
@@ -714,7 +714,7 @@ func Test_UpdatePullRequestBranch(t *testing.T) {
714714 t .Run (tc .name , func (t * testing.T ) {
715715 // Setup client with mock
716716 client := github .NewClient (tc .mockedClient )
717- _ , handler := updatePullRequestBranch (client )
717+ _ , handler := updatePullRequestBranch (client , func ( _ string , defaultString string ) string { return defaultString } )
718718
719719 // Create call request
720720 request := createMCPRequest (tc .requestArgs )
@@ -742,7 +742,7 @@ func Test_UpdatePullRequestBranch(t *testing.T) {
742742func Test_GetPullRequestComments (t * testing.T ) {
743743 // Verify tool definition once
744744 mockClient := github .NewClient (nil )
745- tool , _ := getPullRequestComments (mockClient )
745+ tool , _ := getPullRequestComments (mockClient , func ( _ string , defaultString string ) string { return defaultString } )
746746
747747 assert .Equal (t , "get_pull_request_comments" , tool .Name )
748748 assert .NotEmpty (t , tool .Description )
@@ -830,7 +830,7 @@ func Test_GetPullRequestComments(t *testing.T) {
830830 t .Run (tc .name , func (t * testing.T ) {
831831 // Setup client with mock
832832 client := github .NewClient (tc .mockedClient )
833- _ , handler := getPullRequestComments (client )
833+ _ , handler := getPullRequestComments (client , func ( _ string , defaultString string ) string { return defaultString } )
834834
835835 // Create call request
836836 request := createMCPRequest (tc .requestArgs )
@@ -869,7 +869,7 @@ func Test_GetPullRequestComments(t *testing.T) {
869869func Test_GetPullRequestReviews (t * testing.T ) {
870870 // Verify tool definition once
871871 mockClient := github .NewClient (nil )
872- tool , _ := getPullRequestReviews (mockClient )
872+ tool , _ := getPullRequestReviews (mockClient , func ( _ string , defaultString string ) string { return defaultString } )
873873
874874 assert .Equal (t , "get_pull_request_reviews" , tool .Name )
875875 assert .NotEmpty (t , tool .Description )
@@ -953,7 +953,7 @@ func Test_GetPullRequestReviews(t *testing.T) {
953953 t .Run (tc .name , func (t * testing.T ) {
954954 // Setup client with mock
955955 client := github .NewClient (tc .mockedClient )
956- _ , handler := getPullRequestReviews (client )
956+ _ , handler := getPullRequestReviews (client , func ( _ string , defaultString string ) string { return defaultString } )
957957
958958 // Create call request
959959 request := createMCPRequest (tc .requestArgs )
0 commit comments