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

Function TestUpdateReactionModerationStatus

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

Source from the content-addressed store, hash-verified

68}
69
70func TestUpdateReactionModerationStatus(t *testing.T) {
71 ctx := context.Background()
72 client, requester := newClient(t)
73 err := client.Moderation().UpdateReactionModerationStatus(ctx, "foo", "moderator_123", "complete", "watch", "mark_safe")
74 require.NoError(t, err)
75 testRequest(
76 t,
77 requester.req,
78 http.MethodPost,
79 "https://api.stream-io-api.com/api/v1.0/moderation/status/?api_key=key",
80 `{"entity_id":"foo", "entity_type":"stream:feeds:v2:reaction", "moderator_id": "moderator_123", "latest_moderator_action":"mark_safe", "recommended_action":"watch", "status":"complete"}`,
81 )
82}
83
84func TestUpdateStatusBatch(t *testing.T) {
85 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