(t *testing.T)
| 86 | } |
| 87 | |
| 88 | func 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 | |
| 111 | func TestUserEmail_Marshal(t *testing.T) { |
| 112 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…