MCPcopy
hub / github.com/oauth2-proxy/oauth2-proxy / GetEndpoint

Method GetEndpoint

oauthproxy_test.go:609–614  ·  view source on GitHub ↗
(endpoint string)

Source from the content-addressed store, hash-verified

607}
608
609func (sipTest *SignInPageTest) GetEndpoint(endpoint string) (int, string) {
610 rw := httptest.NewRecorder()
611 req, _ := http.NewRequest(http.MethodGet, endpoint, strings.NewReader(""))
612 sipTest.proxy.ServeHTTP(rw, req)
613 return rw.Code, rw.Body.String()
614}
615
616type AlwaysSuccessfulValidator struct {
617}

Calls 2

ServeHTTPMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected