(t *testing.T)
| 27 | } |
| 28 | |
| 29 | func TestAddToMany(t *testing.T) { |
| 30 | var ( |
| 31 | client, requester = newClient(t) |
| 32 | ctx = context.Background() |
| 33 | activity = stream.Activity{Actor: "bob", Verb: "like", Object: "cake"} |
| 34 | flat, _ = newFlatFeedWithUserID(client, "123") |
| 35 | aggregated, _ = newAggregatedFeedWithUserID(client, "123") |
| 36 | ) |
| 37 | |
| 38 | err := client.AddToMany(ctx, activity, flat, aggregated) |
| 39 | require.NoError(t, err) |
| 40 | body := `{"activity":{"actor":"bob","object":"cake","verb":"like"},"feeds":["flat:123","aggregated:123"]}` |
| 41 | testRequest(t, requester.req, http.MethodPost, "https://api.stream-io-api.com/api/v1.0/feed/add_to_many/?api_key=key", body) |
| 42 | } |
| 43 | |
| 44 | func TestFollowMany(t *testing.T) { |
| 45 | var ( |
nothing calls this directly
no test coverage detected