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

Function TestFeedID

feed_test.go:16–22  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

14)
15
16func TestFeedID(t *testing.T) {
17 client, _ := newClient(t)
18 flat, _ := client.FlatFeed("flat", "123")
19 assert.Equal(t, "flat:123", flat.ID())
20 aggregated, _ := client.AggregatedFeed("aggregated", "456")
21 assert.Equal(t, "aggregated:456", aggregated.ID())
22}
23
24func TestInvalidFeedUserID(t *testing.T) {
25 client, _ := newClient(t)

Callers

nothing calls this directly

Calls 4

newClientFunction · 0.85
FlatFeedMethod · 0.80
AggregatedFeedMethod · 0.80
IDMethod · 0.65

Tested by

no test coverage detected