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

Function TestDeleteReactionWithUserID

reactions_test.go:267–273  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

265}
266
267func TestDeleteReactionWithUserID(t *testing.T) {
268 ctx := context.Background()
269 client, requester := newClient(t)
270 _, err := client.Reactions().Delete(ctx, "id1", stream.WithReactionUserID("user1"))
271 require.NoError(t, err)
272 testRequest(t, requester.req, http.MethodDelete, "https://api.stream-io-api.com/api/v1.0/reaction/id1/?api_key=key&user_id=user1", "")
273}
274
275func TestSoftDeleteReactionWithUserID(t *testing.T) {
276 ctx := context.Background()

Callers

nothing calls this directly

Calls 4

newClientFunction · 0.85
testRequestFunction · 0.85
ReactionsMethod · 0.80
DeleteMethod · 0.45

Tested by

no test coverage detected