MCPcopy Index your code
hub / github.com/GetStream/stream-cli / InitClient

Function InitClient

test/helpers.go:42–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40}
41
42func InitClient() *stream.Client {
43 c, err := stream.NewClientFromEnvVars()
44 if err != nil {
45 panic(err)
46 }
47 return c
48}
49
50func InitChannel(t *testing.T) string {
51 name := RandomString(10)

Callers 11

TestCreateChannelFunction · 0.92
TestDeleteChannelFunction · 0.92
TestUpdateChannelFunction · 0.92
TestUpdateChannelPartialFunction · 0.92
deleteChannelTypeFunction · 0.92
InitChannelFunction · 0.85
DeleteChannelFunction · 0.85
CreateUserFunction · 0.85
DeleteUserFunction · 0.85
CreateMessageWithTextFunction · 0.85
DeleteMessageFunction · 0.85

Calls

no outgoing calls

Tested by 5

TestCreateChannelFunction · 0.74
TestDeleteChannelFunction · 0.74
TestUpdateChannelFunction · 0.74
TestUpdateChannelPartialFunction · 0.74
deleteChannelTypeFunction · 0.74