@@ -18,7 +18,7 @@ import (
18
18
func Test_GetIssue (t * testing.T ) {
19
19
// Verify tool definition once
20
20
mockClient := github .NewClient (nil )
21
- tool ,_ := getIssue (mockClient ,translations .NullTranslationHelper )
21
+ tool ,_ := GetIssue (mockClient ,translations .NullTranslationHelper )
22
22
23
23
assert .Equal (t ,"get_issue" ,tool .Name )
24
24
assert .NotEmpty (t ,tool .Description )
@@ -82,7 +82,7 @@ func Test_GetIssue(t *testing.T) {
82
82
t .Run (tc .name ,func (t * testing.T ) {
83
83
// Setup client with mock
84
84
client := github .NewClient (tc .mockedClient )
85
- _ ,handler := getIssue (client ,translations .NullTranslationHelper )
85
+ _ ,handler := GetIssue (client ,translations .NullTranslationHelper )
86
86
87
87
// Create call request
88
88
request := createMCPRequest (tc .requestArgs )
@@ -114,7 +114,7 @@ func Test_GetIssue(t *testing.T) {
114
114
func Test_AddIssueComment (t * testing.T ) {
115
115
// Verify tool definition once
116
116
mockClient := github .NewClient (nil )
117
- tool ,_ := addIssueComment (mockClient ,translations .NullTranslationHelper )
117
+ tool ,_ := AddIssueComment (mockClient ,translations .NullTranslationHelper )
118
118
119
119
assert .Equal (t ,"add_issue_comment" ,tool .Name )
120
120
assert .NotEmpty (t ,tool .Description )
@@ -185,7 +185,7 @@ func Test_AddIssueComment(t *testing.T) {
185
185
t .Run (tc .name ,func (t * testing.T ) {
186
186
// Setup client with mock
187
187
client := github .NewClient (tc .mockedClient )
188
- _ ,handler := addIssueComment (client ,translations .NullTranslationHelper )
188
+ _ ,handler := AddIssueComment (client ,translations .NullTranslationHelper )
189
189
190
190
// Create call request
191
191
request := mcp.CallToolRequest {
@@ -237,7 +237,7 @@ func Test_AddIssueComment(t *testing.T) {
237
237
func Test_SearchIssues (t * testing.T ) {
238
238
// Verify tool definition once
239
239
mockClient := github .NewClient (nil )
240
- tool ,_ := searchIssues (mockClient ,translations .NullTranslationHelper )
240
+ tool ,_ := SearchIssues (mockClient ,translations .NullTranslationHelper )
241
241
242
242
assert .Equal (t ,"search_issues" ,tool .Name )
243
243
assert .NotEmpty (t ,tool .Description )
@@ -352,7 +352,7 @@ func Test_SearchIssues(t *testing.T) {
352
352
t .Run (tc .name ,func (t * testing.T ) {
353
353
// Setup client with mock
354
354
client := github .NewClient (tc .mockedClient )
355
- _ ,handler := searchIssues (client ,translations .NullTranslationHelper )
355
+ _ ,handler := SearchIssues (client ,translations .NullTranslationHelper )
356
356
357
357
// Create call request
358
358
request := createMCPRequest (tc .requestArgs )
@@ -393,7 +393,7 @@ func Test_SearchIssues(t *testing.T) {
393
393
func Test_CreateIssue (t * testing.T ) {
394
394
// Verify tool definition once
395
395
mockClient := github .NewClient (nil )
396
- tool ,_ := createIssue (mockClient ,translations .NullTranslationHelper )
396
+ tool ,_ := CreateIssue (mockClient ,translations .NullTranslationHelper )
397
397
398
398
assert .Equal (t ,"create_issue" ,tool .Name )
399
399
assert .NotEmpty (t ,tool .Description )
@@ -505,7 +505,7 @@ func Test_CreateIssue(t *testing.T) {
505
505
t .Run (tc .name ,func (t * testing.T ) {
506
506
// Setup client with mock
507
507
client := github .NewClient (tc .mockedClient )
508
- _ ,handler := createIssue (client ,translations .NullTranslationHelper )
508
+ _ ,handler := CreateIssue (client ,translations .NullTranslationHelper )
509
509
510
510
// Create call request
511
511
request := createMCPRequest (tc .requestArgs )
@@ -546,7 +546,7 @@ func Test_CreateIssue(t *testing.T) {
546
546
547
547
// Check assignees if expected
548
548
if len (tc .expectedIssue .Assignees )> 0 {
549
- assert .Equal (t ,len (tc .expectedIssue .Assignees ),len (returnedIssue .Assignees ))
549
+ assert .Equal (t ,len (tc .expectedIssue .Assignees ),len (returnedIssue .Assignees )
550
550
for i ,assignee := range returnedIssue.Assignees {
551
551
assert .Equal (t ,* tc .expectedIssue .Assignees [i ].Login ,* assignee .Login )
552
552
}
@@ -566,7 +566,7 @@ func Test_CreateIssue(t *testing.T) {
566
566
func Test_ListIssues (t * testing.T ) {
567
567
// Verify tool definition
568
568
mockClient := github .NewClient (nil )
569
- tool ,_ := listIssues (mockClient ,translations .NullTranslationHelper )
569
+ tool ,_ := ListIssues (mockClient ,translations .NullTranslationHelper )
570
570
571
571
assert .Equal (t ,"list_issues" ,tool .Name )
572
572
assert .NotEmpty (t ,tool .Description )
@@ -697,7 +697,7 @@ func Test_ListIssues(t *testing.T) {
697
697
t .Run (tc .name ,func (t * testing.T ) {
698
698
// Setup client with mock
699
699
client := github .NewClient (tc .mockedClient )
700
- _ ,handler := listIssues (client ,translations .NullTranslationHelper )
700
+ _ ,handler := ListIssues (client ,translations .NullTranslationHelper )
701
701
702
702
// Create call request
703
703
request := createMCPRequest (tc .requestArgs )
@@ -742,7 +742,7 @@ func Test_ListIssues(t *testing.T) {
742
742
func Test_UpdateIssue (t * testing.T ) {
743
743
// Verify tool definition
744
744
mockClient := github .NewClient (nil )
745
- tool ,_ := updateIssue (mockClient ,translations .NullTranslationHelper )
745
+ tool ,_ := UpdateIssue (mockClient ,translations .NullTranslationHelper )
746
746
747
747
assert .Equal (t ,"update_issue" ,tool .Name )
748
748
assert .NotEmpty (t ,tool .Description )
@@ -881,7 +881,7 @@ func Test_UpdateIssue(t *testing.T) {
881
881
t .Run (tc .name ,func (t * testing.T ) {
882
882
// Setup client with mock
883
883
client := github .NewClient (tc .mockedClient )
884
- _ ,handler := updateIssue (client ,translations .NullTranslationHelper )
884
+ _ ,handler := UpdateIssue (client ,translations .NullTranslationHelper )
885
885
886
886
// Create call request
887
887
request := createMCPRequest (tc .requestArgs )
@@ -999,7 +999,7 @@ func Test_ParseISOTimestamp(t *testing.T) {
999
999
func Test_GetIssueComments (t * testing.T ) {
1000
1000
// Verify tool definition once
1001
1001
mockClient := github .NewClient (nil )
1002
- tool ,_ := getIssueComments (mockClient ,translations .NullTranslationHelper )
1002
+ tool ,_ := GetIssueComments (mockClient ,translations .NullTranslationHelper )
1003
1003
1004
1004
assert .Equal (t ,"get_issue_comments" ,tool .Name )
1005
1005
assert .NotEmpty (t ,tool .Description )
@@ -1099,7 +1099,7 @@ func Test_GetIssueComments(t *testing.T) {
1099
1099
t .Run (tc .name ,func (t * testing.T ) {
1100
1100
// Setup client with mock
1101
1101
client := github .NewClient (tc .mockedClient )
1102
- _ ,handler := getIssueComments (client ,translations .NullTranslationHelper )
1102
+ _ ,handler := GetIssueComments (client ,translations .NullTranslationHelper )
1103
1103
1104
1104
// Create call request
1105
1105
request := createMCPRequest (tc .requestArgs )