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

Function TestUsersService_DeleteEmails

github/users_emails_test.go:88–109  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

86}
87
88func TestUsersService_DeleteEmails(t *testing.T) {
89 t.Parallel()
90 client, mux, _ := setup(t)
91
92 input := []string{"user@example.com"}
93
94 mux.HandleFunc("/user/emails", func(_ http.ResponseWriter, r *http.Request) {
95 testMethod(t, r, "DELETE")
96 testJSONBody(t, r, input)
97 })
98
99 ctx := t.Context()
100 _, err := client.Users.DeleteEmails(ctx, input)
101 if err != nil {
102 t.Errorf("Users.DeleteEmails returned error: %v", err)
103 }
104
105 const methodName = "DeleteEmails"
106 testNewRequestAndDoFailure(t, methodName, client, func() (*Response, error) {
107 return client.Users.DeleteEmails(ctx, input)
108 })
109}
110
111func TestUserEmail_Marshal(t *testing.T) {
112 t.Parallel()

Callers

nothing calls this directly

Calls 5

testMethodFunction · 0.85
testJSONBodyFunction · 0.85
DeleteEmailsMethod · 0.80
setupFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…