@@ -18,7 +18,7 @@ import (
18
18
func Test_GetFileContents (t * testing.T ) {
19
19
// Verify tool definition once
20
20
mockClient := github .NewClient (nil )
21
- tool , _ := getFileContents (mockClient , translations .NullTranslationHelper )
21
+ tool , _ := GetFileContents (mockClient , translations .NullTranslationHelper )
22
22
23
23
assert .Equal (t , "get_file_contents" , tool .Name )
24
24
assert .NotEmpty (t , tool .Description )
@@ -132,7 +132,7 @@ func Test_GetFileContents(t *testing.T) {
132
132
t .Run (tc .name , func (t * testing.T ) {
133
133
// Setup client with mock
134
134
client := github .NewClient (tc .mockedClient )
135
- _ , handler := getFileContents (client , translations .NullTranslationHelper )
135
+ _ , handler := GetFileContents (client , translations .NullTranslationHelper )
136
136
137
137
// Create call request
138
138
request := mcp.CallToolRequest {
@@ -189,7 +189,7 @@ func Test_GetFileContents(t *testing.T) {
189
189
func Test_ForkRepository (t * testing.T ) {
190
190
// Verify tool definition once
191
191
mockClient := github .NewClient (nil )
192
- tool , _ := forkRepository (mockClient , translations .NullTranslationHelper )
192
+ tool , _ := ForkRepository (mockClient , translations .NullTranslationHelper )
193
193
194
194
assert .Equal (t , "fork_repository" , tool .Name )
195
195
assert .NotEmpty (t , tool .Description )
@@ -259,7 +259,7 @@ func Test_ForkRepository(t *testing.T) {
259
259
t .Run (tc .name , func (t * testing.T ) {
260
260
// Setup client with mock
261
261
client := github .NewClient (tc .mockedClient )
262
- _ , handler := forkRepository (client , translations .NullTranslationHelper )
262
+ _ , handler := ForkRepository (client , translations .NullTranslationHelper )
263
263
264
264
// Create call request
265
265
request := createMCPRequest (tc .requestArgs )
@@ -287,7 +287,7 @@ func Test_ForkRepository(t *testing.T) {
287
287
func Test_CreateBranch (t * testing.T ) {
288
288
// Verify tool definition once
289
289
mockClient := github .NewClient (nil )
290
- tool , _ := createBranch (mockClient , translations .NullTranslationHelper )
290
+ tool , _ := CreateBranch (mockClient , translations .NullTranslationHelper )
291
291
292
292
assert .Equal (t , "create_branch" , tool .Name )
293
293
assert .NotEmpty (t , tool .Description )
@@ -445,7 +445,7 @@ func Test_CreateBranch(t *testing.T) {
445
445
t .Run (tc .name , func (t * testing.T ) {
446
446
// Setup client with mock
447
447
client := github .NewClient (tc .mockedClient )
448
- _ , handler := createBranch (client , translations .NullTranslationHelper )
448
+ _ , handler := CreateBranch (client , translations .NullTranslationHelper )
449
449
450
450
// Create call request
451
451
request := createMCPRequest (tc .requestArgs )
@@ -478,7 +478,7 @@ func Test_CreateBranch(t *testing.T) {
478
478
func Test_ListCommits (t * testing.T ) {
479
479
// Verify tool definition once
480
480
mockClient := github .NewClient (nil )
481
- tool , _ := listCommits (mockClient , translations .NullTranslationHelper )
481
+ tool , _ := ListCommits (mockClient , translations .NullTranslationHelper )
482
482
483
483
assert .Equal (t , "list_commits" , tool .Name )
484
484
assert .NotEmpty (t , tool .Description )
@@ -614,7 +614,7 @@ func Test_ListCommits(t *testing.T) {
614
614
t .Run (tc .name , func (t * testing.T ) {
615
615
// Setup client with mock
616
616
client := github .NewClient (tc .mockedClient )
617
- _ , handler := listCommits (client , translations .NullTranslationH
F42D
elper )
617
+ _ , handler := ListCommits (client , translations .NullTranslationHelper )
618
618
619
619
// Create call request
620
620
request := createMCPRequest (tc .requestArgs )
@@ -652,7 +652,7 @@ func Test_ListCommits(t *testing.T) {
652
652
func Test_CreateOrUpdateFile (t * testing.T ) {
653
653
// Verify tool definition once
654
654
mockClient := github .NewClient (nil )
655
- tool , _ := createOrUpdateFile (mockClient , translations .NullTranslationHelper )
655
+ tool , _ := CreateOrUpdateFile (mockClient , translations .NullTranslationHelper )
656
656
657
657
assert .Equal (t , "create_or_update_file" , tool .Name )
658
658
assert .NotEmpty (t , tool .Description )
@@ -775,7 +775,7 @@ func Test_CreateOrUpdateFile(t *testing.T) {
775
775
t .Run (tc .name , func (t * testing.T ) {
776
776
// Setup client with mock
777
777
client := github .NewClient (tc .mockedClient )
778
- _ , handler := createOrUpdateFile (client , translations .NullTranslationHelper )
778
+ _ , handler := CreateOrUpdateFile (client , translations .NullTranslationHelper )
779
779
780
780
// Create call request
781
781
request := createMCPRequest (tc .requestArgs )
@@ -815,7 +815,7 @@ func Test_CreateOrUpdateFile(t *testing.T) {
815
815
func Test_CreateRepository (t * testing.T ) {
816
816
// Verify tool definition once
817
817
mockClient := github .NewClient (nil )
818
- tool , _ := createRepository (mockClient , translations .NullTranslationHelper )
818
+ tool , _ := CreateRepository (mockClient , translations .NullTranslationHelper )
819
819
820
820
assert .Equal (t , "create_repository" , tool .Name )
821
821
assert .NotEmpty (t , tool .Description )
@@ -923,7 +923,7 @@ func Test_CreateRepository(t *testing.T) {
923
923
t .Run (tc .name , func (t * testing.T ) {
924
924
// Setup client with mock
925
925
client := github .NewClient (tc .mockedClient )
926
- _ , handler := createRepository (client , translations .NullTranslationHelper )
926
+ _ , handler := CreateRepository (client , translations .NullTranslationHelper )
927
927
928
928
// Create call request
929
929
request := createMCPRequest (tc .requestArgs )
@@ -961,7 +961,7 @@ func Test_CreateRepository(t *testing.T) {
961
961
func Test_PushFiles (t * testing.T ) {
962
962
// Verify tool definition once
963
F438
963
mockClient := github .NewClient (nil )
964
- tool , _ := pushFiles (mockClient , translations .NullTranslationHelper )
964
+ tool , _ := PushFiles (mockClient , translations .NullTranslationHelper )
965
965
966
966
assert .Equal (t , "push_files" , tool .Name )
967
967
assert .NotEmpty (t , tool .Description )
@@ -1256,7 +1256,7 @@ func Test_PushFiles(t *testing.T) {
1256
1256
t .Run (tc .name , func (t * testing.T ) {
1257
1257
// Setup client with mock
1258
1258
client := github .NewClient (tc .mockedClient )
1259
- _ , handler := pushFiles (client , translations .NullTranslationHelper )
1259
+ _ , handler := PushFiles (client , translations .NullTranslationHelper )
1260
1260
1261
1261
// Create call request
1262
1262
request := createMCPRequest (tc .requestArgs )
0 commit comments