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

Function TestGetCollectionObject

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

Source from the content-addressed store, hash-verified

124}
125
126func TestGetCollectionObject(t *testing.T) {
127 ctx := context.Background()
128 client, requester := newClient(t)
129
130 _, err := client.Collections().Get(ctx, "test-get-one", "id1")
131 require.NoError(t, err)
132 testRequest(t, requester.req, http.MethodGet, "https://api.stream-io-api.com/api/v1.0/collections/test-get-one/id1/?api_key=key", "")
133}
134
135func TestDeleteCollectionObject(t *testing.T) {
136 ctx := context.Background()

Callers

nothing calls this directly

Calls 4

newClientFunction · 0.85
testRequestFunction · 0.85
CollectionsMethod · 0.80
GetMethod · 0.45

Tested by

no test coverage detected