MCPcopy Create free account
hub / github.com/google/go-github / TestParseBooleanResponse_error

Function TestParseBooleanResponse_error

github/github_test.go:3946–3958  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

3944}
3945
3946func TestParseBooleanResponse_error(t *testing.T) {
3947 t.Parallel()
3948 v := &ErrorResponse{Response: &http.Response{StatusCode: http.StatusBadRequest}}
3949 result, err := parseBoolResponse(v)
3950
3951 if err == nil {
3952 t.Error("Expected error to be returned.")
3953 }
3954
3955 if want := false; result != want {
3956 t.Errorf("parseBoolResponse returned %+v, want: %+v", result, want)
3957 }
3958}
3959
3960func TestErrorResponse_Error(t *testing.T) {
3961 t.Parallel()

Callers

nothing calls this directly

Calls 2

parseBoolResponseFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…