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

Function TestUserRefHelpers

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

Source from the content-addressed store, hash-verified

12)
13
14func TestUserRefHelpers(t *testing.T) {
15 client, _ := newClient(t)
16 ref := client.Users().CreateReference("bar")
17 assert.Equal(t, "SU:bar", ref)
18}
19
20func TestGetUser(t *testing.T) {
21 ctx := context.Background()

Callers

nothing calls this directly

Calls 3

newClientFunction · 0.85
UsersMethod · 0.80
CreateReferenceMethod · 0.45

Tested by

no test coverage detected