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

Function TestDeleteReaction

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

Source from the content-addressed store, hash-verified

19}
20
21func TestDeleteReaction(t *testing.T) {
22 ctx := context.Background()
23 client, requester := newClient(t)
24 _, err := client.Reactions().Delete(ctx, "id1")
25 require.NoError(t, err)
26 testRequest(t, requester.req, http.MethodDelete, "https://api.stream-io-api.com/api/v1.0/reaction/id1/?api_key=key", "")
27}
28
29func TestAddReaction(t *testing.T) {
30 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