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

Function TestGetUser

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

Source from the content-addressed store, hash-verified

18}
19
20func TestGetUser(t *testing.T) {
21 ctx := context.Background()
22 client, requester := newClient(t)
23
24 _, err := client.Users().Get(ctx, "id1")
25 require.NoError(t, err)
26 testRequest(t, requester.req, http.MethodGet, "https://api.stream-io-api.com/api/v1.0/user/id1/?api_key=key", "")
27}
28
29func TestDeleteUser(t *testing.T) {
30 ctx := context.Background()

Callers

nothing calls this directly

Calls 4

newClientFunction · 0.85
testRequestFunction · 0.85
UsersMethod · 0.80
GetMethod · 0.45

Tested by

no test coverage detected