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

Function TestParseBooleanResponse_false

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

Source from the content-addressed store, hash-verified

3931}
3932
3933func TestParseBooleanResponse_false(t *testing.T) {
3934 t.Parallel()
3935 v := &ErrorResponse{Response: &http.Response{StatusCode: http.StatusNotFound}}
3936 result, err := parseBoolResponse(v)
3937 if err != nil {
3938 t.Errorf("parseBoolResponse returned error: %+v", err)
3939 }
3940
3941 if want := false; result != want {
3942 t.Errorf("parseBoolResponse returned %+v, want: %+v", result, want)
3943 }
3944}
3945
3946func TestParseBooleanResponse_error(t *testing.T) {
3947 t.Parallel()

Callers

nothing calls this directly

Calls 1

parseBoolResponseFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…