Skip to content

Commit 93116a5

Browse files
CopilotJoannaaKL
andcommitted
Remove go-github-mock from repositories_test.go and issues_test.go
Co-authored-by: JoannaaKL <[email protected]>
1 parent e15cb66 commit 93116a5

File tree

4 files changed

+480
-475
lines changed

4 files changed

+480
-475
lines changed

pkg/github/helper_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"strings"
1010
"testing"
1111

12+
"github.com/github/github-mcp-server/pkg/raw"
1213
"github.com/modelcontextprotocol/go-sdk/mcp"
1314
"github.com/stretchr/testify/assert"
1415
"github.com/stretchr/testify/mock"
@@ -637,6 +638,8 @@ func normalizeEndpointKey(endpoint any) string {
637638
panic("nil EndpointPattern")
638639
}
639640
return v.Method + " " + v.Pattern
641+
case raw.EndpointPattern:
642+
return v.Method + " " + v.Pattern
640643
default:
641644
panic("unsupported endpoint type")
642645
}

0 commit comments

Comments
 (0)