MCPcopy Index your code
hub / github.com/github/github-mcp-server / NewMockedHTTPClient

Function NewMockedHTTPClient

pkg/github/helper_test.go:729–737  ·  view source on GitHub ↗
(options ...MockBackendOption)

Source from the content-addressed store, hash-verified

727}
728
729func NewMockedHTTPClient(options ...MockBackendOption) *http.Client {
730 handlers := map[string]http.HandlerFunc{}
731 for _, opt := range options {
732 if opt != nil {
733 opt(handlers)
734 }
735 }
736 return MockHTTPClientWithHandlers(handlers)
737}
738
739func MustMarshal(v any) []byte {
740 data, err := json.Marshal(v)

Callers 14

Test_CreateRepositoryFunction · 0.70
Test_PushFilesFunction · 0.70
Test_ListBranchesFunction · 0.70
Test_DeleteFileFunction · 0.70
Test_ListTagsFunction · 0.70
Test_GetTagFunction · 0.70
Test_ListReleasesFunction · 0.70
Test_GetLatestReleaseFunction · 0.70
Test_GetReleaseByTagFunction · 0.70
Test_resolveGitReferenceFunction · 0.70
Test_StarRepositoryFunction · 0.70

Calls 1

Tested by

no test coverage detected