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

Function InitChannel

test/helpers.go:50–55  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

48}
49
50func InitChannel(t *testing.T) string {
51 name := RandomString(10)
52 c := InitClient()
53 _, _ = c.CreateChannel(context.Background(), "messaging", name, "userid", nil)
54 return name
55}
56
57func DeleteChannel(id string) {
58 c := InitClient()

Callers 15

TestPushTestFunction · 0.92
TestReactionsFunction · 0.92
TestGetChannelFunction · 0.92
TestDeleteChannelFunction · 0.92
TestUpdateChannelFunction · 0.92
TestUpdateChannelPartialFunction · 0.92
TestListChannelFunction · 0.92
TestAssignRoleFunction · 0.92
TestHideAndShowChannelFunction · 0.92

Calls 2

RandomStringFunction · 0.85
InitClientFunction · 0.85

Tested by 15

TestPushTestFunction · 0.74
TestReactionsFunction · 0.74
TestGetChannelFunction · 0.74
TestDeleteChannelFunction · 0.74
TestUpdateChannelFunction · 0.74
TestUpdateChannelPartialFunction · 0.74
TestListChannelFunction · 0.74
TestAssignRoleFunction · 0.74
TestHideAndShowChannelFunction · 0.74