MCPcopy Create free account
hub / github.com/GetStream/stream-go2 / TestDeleteUser

Function TestDeleteUser

users_test.go:29–36  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

27}
28
29func TestDeleteUser(t *testing.T) {
30 ctx := context.Background()
31 client, requester := newClient(t)
32
33 _, err := client.Users().Delete(ctx, "id1")
34 require.NoError(t, err)
35 testRequest(t, requester.req, http.MethodDelete, "https://api.stream-io-api.com/api/v1.0/user/id1/?api_key=key", "")
36}
37
38func TestAddUser(t *testing.T) {
39 ctx := context.Background()

Callers

nothing calls this directly

Calls 4

newClientFunction · 0.85
testRequestFunction · 0.85
UsersMethod · 0.80
DeleteMethod · 0.45

Tested by

no test coverage detected