MCPcopy Index your code
hub / github.com/google/go-github / testURLParseError

Function testURLParseError

github/github_test.go:201–210  ·  view source on GitHub ↗
(t *testing.T, err error)

Source from the content-addressed store, hash-verified

199}
200
201func testURLParseError(t *testing.T, err error) {
202 t.Helper()
203 if err == nil {
204 t.Error("Expected error to be returned")
205 }
206 var uerr *url.Error
207 if !errors.As(err, &uerr) || uerr.Op != "parse" {
208 t.Errorf("Expected URL parse error, got %+v", err)
209 }
210}
211
212func testPlainBody(t *testing.T, r *http.Request, want string) {
213 t.Helper()

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…