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

Function TestCollectionRefHelpers

collections_test.go:15–19  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

13)
14
15func TestCollectionRefHelpers(t *testing.T) {
16 client, _ := newClient(t)
17 ref := client.Collections().CreateReference("foo", "bar")
18 assert.Equal(t, "SO:foo:bar", ref)
19}
20
21func TestUpsertCollectionObjects(t *testing.T) {
22 ctx := context.Background()

Callers

nothing calls this directly

Calls 3

newClientFunction · 0.85
CollectionsMethod · 0.80
CreateReferenceMethod · 0.45

Tested by

no test coverage detected