MCPcopy Create free account
hub / github.com/go-playground/webhooks / newServer

Function newServer

github/github_test.go:47–51  ·  view source on GitHub ↗
(handler http.HandlerFunc)

Source from the content-addressed store, hash-verified

45}
46
47func newServer(handler http.HandlerFunc) *httptest.Server {
48 mux := http.NewServeMux()
49 mux.HandleFunc(path, handler)
50 return httptest.NewServer(mux)
51}
52
53func TestBadRequests(t *testing.T) {
54 assert := require.New(t)

Callers 2

TestBadRequestsFunction · 0.70
TestWebhooksFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…