MCPcopy
hub / github.com/github/github-mcp-server / expectRequestBody

Function expectRequestBody

pkg/github/helper_test.go:241–246  ·  view source on GitHub ↗

expectRequestBody is a helper function to create a partial mock that expects a request with the given body, with the ability to chain a response handler.

(t *testing.T, expectedRequestBody any)

Source from the content-addressed store, hash-verified

239// expectRequestBody is a helper function to create a partial mock that expects a
240// request with the given body, with the ability to chain a response handler.
241func expectRequestBody(t *testing.T, expectedRequestBody any) *partialMock {
242 return &partialMock{
243 t: t,
244 expectedRequestBody: expectedRequestBody,
245 }
246}
247
248type partialMock struct {
249 t *testing.T

Calls

no outgoing calls

Tested by

no test coverage detected