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

Function TestUpdateActivityModerationStatus

moderation_test.go:56–68  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

54}
55
56func TestUpdateActivityModerationStatus(t *testing.T) {
57 ctx := context.Background()
58 client, requester := newClient(t)
59 err := client.Moderation().UpdateActivityModerationStatus(ctx, "foo", "moderator_123", "complete", "watch", "mark_safe")
60 require.NoError(t, err)
61 testRequest(
62 t,
63 requester.req,
64 http.MethodPost,
65 "https://api.stream-io-api.com/api/v1.0/moderation/status/?api_key=key",
66 `{"entity_id":"foo", "entity_type":"stream:feeds:v2:activity", "moderator_id": "moderator_123", "latest_moderator_action":"mark_safe", "recommended_action":"watch", "status":"complete"}`,
67 )
68}
69
70func TestUpdateReactionModerationStatus(t *testing.T) {
71 ctx := context.Background()

Callers

nothing calls this directly

Calls 4

newClientFunction · 0.85
testRequestFunction · 0.85
ModerationMethod · 0.80

Tested by

no test coverage detected