diff --git a/internal/events/trigger/retrigger_event_test.go b/internal/events/trigger/retrigger_event_test.go index a634721e..d38b9bfb 100644 --- a/internal/events/trigger/retrigger_event_test.go +++ b/internal/events/trigger/retrigger_event_test.go @@ -24,7 +24,7 @@ func TestRefireEvent(t *testing.T) { })) defer ts.Close() - params := *&TriggerParameters{ + params := TriggerParameters{ Event: "gift", Transport: models.TransportWebhook, IsAnonymous: false, diff --git a/internal/events/trigger/trigger_event_test.go b/internal/events/trigger/trigger_event_test.go index 0153ae63..9dde46d6 100644 --- a/internal/events/trigger/trigger_event_test.go +++ b/internal/events/trigger/trigger_event_test.go @@ -22,7 +22,7 @@ func TestFire(t *testing.T) { })) defer ts.Close() - params := *&TriggerParameters{ + params := TriggerParameters{ Event: "gift", Transport: models.TransportWebhook, IsAnonymous: false, @@ -42,7 +42,7 @@ func TestFire(t *testing.T) { a.Nil(err) a.NotEmpty(res) - params = *&TriggerParameters{ + params = TriggerParameters{ Event: "cheer", Transport: models.TransportWebhook, IsAnonymous: false, @@ -61,7 +61,7 @@ func TestFire(t *testing.T) { a.Nil(err) a.NotEmpty(res) - params = *&TriggerParameters{ + params = TriggerParameters{ Event: "follow", Transport: models.TransportWebhook, IsAnonymous: false, @@ -81,7 +81,7 @@ func TestFire(t *testing.T) { a.Nil(err) a.NotEmpty(res) - params = *&TriggerParameters{ + params = TriggerParameters{ Event: "cheer", Transport: models.TransportWebhook, IsAnonymous: false, @@ -100,7 +100,7 @@ func TestFire(t *testing.T) { a.Nil(err) a.NotEmpty(res) - params = *&TriggerParameters{ + params = TriggerParameters{ Event: "add-redemption", Transport: models.TransportWebhook, IsAnonymous: false, @@ -119,7 +119,7 @@ func TestFire(t *testing.T) { a.Nil(err) a.NotEmpty(res) - params = *&TriggerParameters{ + params = TriggerParameters{ Event: "add-reward", Transport: models.TransportWebhook, IsAnonymous: false, @@ -138,7 +138,7 @@ func TestFire(t *testing.T) { a.Nil(err) a.NotEmpty(res) - params = *&TriggerParameters{ + params = TriggerParameters{ Event: "transaction", Transport: models.TransportWebhook, IsAnonymous: false, @@ -157,7 +157,7 @@ func TestFire(t *testing.T) { a.Nil(err) a.NotEmpty(res) - params = *&TriggerParameters{ + params = TriggerParameters{ Event: "add-reward", Transport: "potato", IsAnonymous: false, diff --git a/internal/events/types/_template/_event_name_test.go b/internal/events/types/_template/_event_name_test.go index 79436123..8f772a56 100644 --- a/internal/events/types/_template/_event_name_test.go +++ b/internal/events/types/_template/_event_name_test.go @@ -17,7 +17,7 @@ var toUser = "4567" func TestEventSub(t *testing.T) { a := test_setup.SetupTestEnv(t) - params := *&events.MockEventParameters{ + params := events.MockEventParameters{ FromUserID: fromUser, ToUserID: toUser, Transport: models.TransportWebhook, @@ -36,7 +36,7 @@ func TestEventSub(t *testing.T) { func TestFakeTransport(t *testing.T) { a := test_setup.SetupTestEnv(t) - params := *&events.MockEventParameters{ + params := events.MockEventParameters{ FromUserID: fromUser, ToUserID: toUser, Transport: "fake_transport", diff --git a/internal/events/types/authorization_grant/grant_test.go b/internal/events/types/authorization_grant/grant_test.go index 8eb414bb..5c871e64 100644 --- a/internal/events/types/authorization_grant/grant_test.go +++ b/internal/events/types/authorization_grant/grant_test.go @@ -17,7 +17,7 @@ var toUser = "4567" func TestEventSub(t *testing.T) { a := test_setup.SetupTestEnv(t) - params := *&events.MockEventParameters{ + params := events.MockEventParameters{ FromUserID: fromUser, ToUserID: toUser, Transport: models.TransportWebhook, @@ -40,7 +40,7 @@ func TestEventSub(t *testing.T) { func TestFakeTransport(t *testing.T) { a := test_setup.SetupTestEnv(t) - params := *&events.MockEventParameters{ + params := events.MockEventParameters{ FromUserID: fromUser, ToUserID: toUser, Transport: "fake_transport", diff --git a/internal/events/types/authorization_revoke/revoke_test.go b/internal/events/types/authorization_revoke/revoke_test.go index d91f77c0..df5d6cc6 100644 --- a/internal/events/types/authorization_revoke/revoke_test.go +++ b/internal/events/types/authorization_revoke/revoke_test.go @@ -17,7 +17,7 @@ var toUser = "4567" func TestEventSub(t *testing.T) { a := test_setup.SetupTestEnv(t) - params := *&events.MockEventParameters{ + params := events.MockEventParameters{ FromUserID: fromUser, ToUserID: toUser, Transport: models.TransportWebhook, @@ -40,7 +40,7 @@ func TestEventSub(t *testing.T) { func TestFakeTransport(t *testing.T) { a := test_setup.SetupTestEnv(t) - params := *&events.MockEventParameters{ + params := events.MockEventParameters{ FromUserID: fromUser, ToUserID: toUser, Transport: "fake_transport", diff --git a/internal/events/types/ban/ban.go b/internal/events/types/ban/ban.go index e35a3f3a..8d71ff00 100644 --- a/internal/events/types/ban/ban.go +++ b/internal/events/types/ban/ban.go @@ -108,7 +108,7 @@ func (e Event) GenerateEvent(params events.MockEventParameters) (events.MockEven ban.EndsAt = endsAt ban.IsPermanent = isPermanent - body := *&models.EventsubResponse{ + body := models.EventsubResponse{ Subscription: models.EventsubSubscription{ ID: params.ID, Status: params.SubscriptionStatus, diff --git a/internal/events/types/channel_points_redemption/redemption_event.go b/internal/events/types/channel_points_redemption/redemption_event.go index 89149017..42adf911 100644 --- a/internal/events/types/channel_points_redemption/redemption_event.go +++ b/internal/events/types/channel_points_redemption/redemption_event.go @@ -53,7 +53,7 @@ func (e Event) GenerateEvent(params events.MockEventParameters) (events.MockEven switch params.Transport { case models.TransportWebhook, models.TransportWebSocket: - body := *&models.RedemptionEventSubResponse{ + body := models.RedemptionEventSubResponse{ Subscription: models.EventsubSubscription{ ID: params.ID, Status: params.SubscriptionStatus, diff --git a/internal/events/types/channel_update_v1/channel_update_test.go b/internal/events/types/channel_update_v1/channel_update_test.go index 500750ff..5b70bbf6 100644 --- a/internal/events/types/channel_update_v1/channel_update_test.go +++ b/internal/events/types/channel_update_v1/channel_update_test.go @@ -17,7 +17,7 @@ var toUser = "4567" func TestEventSub(t *testing.T) { a := test_setup.SetupTestEnv(t) - params := *&events.MockEventParameters{ + params := events.MockEventParameters{ FromUserID: fromUser, ToUserID: toUser, Transport: models.TransportWebhook, diff --git a/internal/events/types/channel_update_v2/channel_update_test.go b/internal/events/types/channel_update_v2/channel_update_test.go index 87e81dce..49c3db14 100644 --- a/internal/events/types/channel_update_v2/channel_update_test.go +++ b/internal/events/types/channel_update_v2/channel_update_test.go @@ -17,7 +17,7 @@ var toUser = "4567" func TestEventSub(t *testing.T) { a := test_setup.SetupTestEnv(t) - params := *&events.MockEventParameters{ + params := events.MockEventParameters{ FromUserID: fromUser, ToUserID: toUser, Transport: models.TransportWebhook, diff --git a/internal/events/types/cheer/cheer_event.go b/internal/events/types/cheer/cheer_event.go index 8d5dfe10..ab359f13 100644 --- a/internal/events/types/cheer/cheer_event.go +++ b/internal/events/types/cheer/cheer_event.go @@ -43,7 +43,7 @@ func (e Event) GenerateEvent(params events.MockEventParameters) (events.MockEven switch params.Transport { case models.TransportWebhook, models.TransportWebSocket: - body := *&models.EventsubResponse{ + body := models.EventsubResponse{ Subscription: models.EventsubSubscription{ ID: params.ID, Status: params.SubscriptionStatus, diff --git a/internal/events/types/drop/drop_test.go b/internal/events/types/drop/drop_test.go index 75ff7dad..c186ea6f 100644 --- a/internal/events/types/drop/drop_test.go +++ b/internal/events/types/drop/drop_test.go @@ -17,7 +17,7 @@ var toUser = "4567" func TestEventSub(t *testing.T) { a := test_setup.SetupTestEnv(t) - params := *&events.MockEventParameters{ + params := events.MockEventParameters{ FromUserID: fromUser, ToUserID: toUser, Transport: models.TransportWebhook, @@ -38,7 +38,7 @@ func TestEventSub(t *testing.T) { func TestFakeTransport(t *testing.T) { a := test_setup.SetupTestEnv(t) - params := *&events.MockEventParameters{ + params := events.MockEventParameters{ FromUserID: fromUser, ToUserID: toUser, Transport: "fake_transport", diff --git a/internal/events/types/follow_v1/follow_event_test.go b/internal/events/types/follow_v1/follow_event_test.go index 3f9a5933..1172d763 100644 --- a/internal/events/types/follow_v1/follow_event_test.go +++ b/internal/events/types/follow_v1/follow_event_test.go @@ -17,7 +17,7 @@ var toUser = "4567" func TestEventSub(t *testing.T) { a := test_setup.SetupTestEnv(t) - params := *&events.MockEventParameters{ + params := events.MockEventParameters{ FromUserID: fromUser, ToUserID: toUser, Transport: models.TransportWebhook, @@ -39,7 +39,7 @@ func TestEventSub(t *testing.T) { func TestFakeTransport(t *testing.T) { a := test_setup.SetupTestEnv(t) - params := *&events.MockEventParameters{ + params := events.MockEventParameters{ FromUserID: fromUser, ToUserID: toUser, Transport: "fake_transport", diff --git a/internal/events/types/follow_v2/follow_event_test.go b/internal/events/types/follow_v2/follow_event_test.go index eccef42b..f9c39a01 100644 --- a/internal/events/types/follow_v2/follow_event_test.go +++ b/internal/events/types/follow_v2/follow_event_test.go @@ -17,7 +17,7 @@ var toUser = "4567" func TestEventSub(t *testing.T) { a := test_setup.SetupTestEnv(t) - params := *&events.MockEventParameters{ + params := events.MockEventParameters{ FromUserID: fromUser, ToUserID: toUser, Transport: models.TransportWebhook, @@ -39,7 +39,7 @@ func TestEventSub(t *testing.T) { func TestFakeTransport(t *testing.T) { a := test_setup.SetupTestEnv(t) - params := *&events.MockEventParameters{ + params := events.MockEventParameters{ FromUserID: fromUser, ToUserID: toUser, Transport: "fake_transport", diff --git a/internal/events/types/gift/channel_gift_test.go b/internal/events/types/gift/channel_gift_test.go index 551fddc3..a60d6a24 100644 --- a/internal/events/types/gift/channel_gift_test.go +++ b/internal/events/types/gift/channel_gift_test.go @@ -17,7 +17,7 @@ var toUser = "4567" func TestEventSub(t *testing.T) { a := test_setup.SetupTestEnv(t) - params := *&events.MockEventParameters{ + params := events.MockEventParameters{ FromUserID: fromUser, ToUserID: toUser, Transport: models.TransportWebhook, @@ -42,7 +42,7 @@ func TestEventSub(t *testing.T) { func TestFakeTransport(t *testing.T) { a := test_setup.SetupTestEnv(t) - params := *&events.MockEventParameters{ + params := events.MockEventParameters{ FromUserID: fromUser, ToUserID: toUser, Transport: "fake_transport", diff --git a/internal/events/types/goal/goal_event.go b/internal/events/types/goal/goal_event.go index 78e1782a..410041a9 100644 --- a/internal/events/types/goal/goal_event.go +++ b/internal/events/types/goal/goal_event.go @@ -69,7 +69,7 @@ func (e Event) GenerateEvent(params events.MockEventParameters) (events.MockEven switch params.Transport { case models.TransportWebhook, models.TransportWebSocket: - body := *&models.EventsubResponse{ + body := models.EventsubResponse{ Subscription: models.EventsubSubscription{ ID: params.ID, Status: params.SubscriptionStatus, diff --git a/internal/events/types/goal/goal_event_test.go b/internal/events/types/goal/goal_event_test.go index 8b8d8630..4111d5cd 100644 --- a/internal/events/types/goal/goal_event_test.go +++ b/internal/events/types/goal/goal_event_test.go @@ -16,7 +16,7 @@ var user = "1234" func TestEventSub(t *testing.T) { a := test_setup.SetupTestEnv(t) - params := *&events.MockEventParameters{ + params := events.MockEventParameters{ ToUserID: user, Description: "Twitch Subscriber Goal", Transport: models.TransportWebhook, @@ -36,7 +36,7 @@ func TestEventSub(t *testing.T) { a.Equal(user, body.Event.BroadcasterUserID, "Expected from user %v, got %v", r.ToUser, body.Event.BroadcasterUserID) a.Equal("Twitch Subscriber Goal", body.Event.Description, "Expected from goal type %v, got %v", "Twitch Subscriber Goal", body.Event.Type) - params = *&events.MockEventParameters{ + params = events.MockEventParameters{ ToUserID: user, Description: "Twitch Follower Goal", Transport: models.TransportWebhook, @@ -53,7 +53,7 @@ func TestEventSub(t *testing.T) { a.Equal("channel.goal.progress", body.Subscription.Type, "Expected event type %v, got %v", "channel.goal.progress", body.Subscription.Type) a.Equal(user, body.Event.BroadcasterUserID, "Expected from user %v, got %v", r.ToUser, body.Event.BroadcasterUserID) - params = *&events.MockEventParameters{ + params = events.MockEventParameters{ ToUserID: user, Description: "Twitch Follower Goal", Transport: models.TransportWebhook, @@ -76,7 +76,7 @@ func TestEventSub(t *testing.T) { func TestFakeTransport(t *testing.T) { a := test_setup.SetupTestEnv(t) - params := *&events.MockEventParameters{ + params := events.MockEventParameters{ FromUserID: user, Transport: "fake_transport", Trigger: "unsubscribe", diff --git a/internal/events/types/hype_train/hype_train_event_test.go b/internal/events/types/hype_train/hype_train_event_test.go index bb028b4e..f66cddfc 100644 --- a/internal/events/types/hype_train/hype_train_event_test.go +++ b/internal/events/types/hype_train/hype_train_event_test.go @@ -16,7 +16,7 @@ var toUser = "4567" func TestEventSub(t *testing.T) { a := test_setup.SetupTestEnv(t) - params := *&events.MockEventParameters{ + params := events.MockEventParameters{ ToUserID: toUser, Transport: models.TransportWebhook, Trigger: "hype-train-begin", @@ -33,7 +33,7 @@ func TestEventSub(t *testing.T) { a.Equal("channel.hype_train.begin", body.Subscription.Type, "Expected event type %v, got %v", "channel.hype_train.begin", body.Subscription.Type) a.Equal(toUser, body.Event.BroadcasterUserID, "Expected to user %v, got %v", toUser, body.Event.BroadcasterUserID) - params = *&events.MockEventParameters{ + params = events.MockEventParameters{ ToUserID: toUser, Transport: models.TransportWebhook, Trigger: "hype-train-progress", @@ -50,7 +50,7 @@ func TestEventSub(t *testing.T) { a.Equal("channel.hype_train.progress", body.Subscription.Type, "Expected event type %v, got %v", "channel.hype_train.progress", body.Subscription.Type) a.Equal(toUser, body.Event.BroadcasterUserID, "Expected to user %v, got %v", toUser, body.Event.BroadcasterUserID) - params = *&events.MockEventParameters{ + params = events.MockEventParameters{ ToUserID: toUser, Transport: models.TransportWebhook, Trigger: "hype-train-end", @@ -71,7 +71,7 @@ func TestEventSub(t *testing.T) { func TestFakeTransport(t *testing.T) { a := test_setup.SetupTestEnv(t) - params := *&events.MockEventParameters{ + params := events.MockEventParameters{ ToUserID: toUser, Transport: "fake_transport", Trigger: "hype-train-progress", diff --git a/internal/events/types/moderator_change/moderator_change_event.go b/internal/events/types/moderator_change/moderator_change_event.go index 9b4aaf45..3cab76ea 100644 --- a/internal/events/types/moderator_change/moderator_change_event.go +++ b/internal/events/types/moderator_change/moderator_change_event.go @@ -37,7 +37,7 @@ func (e Event) GenerateEvent(params events.MockEventParameters) (events.MockEven switch params.Transport { case models.TransportWebhook, models.TransportWebSocket: - body := *&models.EventsubResponse{ + body := models.EventsubResponse{ Subscription: models.EventsubSubscription{ ID: params.ID, Status: params.SubscriptionStatus, diff --git a/internal/events/types/moderator_change/moderator_change_event_test.go b/internal/events/types/moderator_change/moderator_change_event_test.go index 4543920f..f8e96c6c 100644 --- a/internal/events/types/moderator_change/moderator_change_event_test.go +++ b/internal/events/types/moderator_change/moderator_change_event_test.go @@ -17,7 +17,7 @@ var toUser = "4567" func TestEventSub(t *testing.T) { a := test_setup.SetupTestEnv(t) - params := *&events.MockEventParameters{ + params := events.MockEventParameters{ FromUserID: fromUser, ToUserID: toUser, Transport: models.TransportWebhook, @@ -40,7 +40,7 @@ func TestEventSub(t *testing.T) { func TestFakeTransport(t *testing.T) { a := test_setup.SetupTestEnv(t) - params := *&events.MockEventParameters{ + params := events.MockEventParameters{ FromUserID: fromUser, ToUserID: toUser, Transport: "fake_transport", diff --git a/internal/events/types/poll/poll_test.go b/internal/events/types/poll/poll_test.go index a4c8c287..48530640 100644 --- a/internal/events/types/poll/poll_test.go +++ b/internal/events/types/poll/poll_test.go @@ -17,7 +17,7 @@ var toUser = "4567" func TestEventSub(t *testing.T) { a := test_setup.SetupTestEnv(t) - params := *&events.MockEventParameters{ + params := events.MockEventParameters{ FromUserID: fromUser, ToUserID: toUser, Transport: models.TransportWebhook, @@ -34,7 +34,7 @@ func TestEventSub(t *testing.T) { a.NotEmpty(body.Event.EndsAt) a.Empty(body.Event.EndedAt) - params = *&events.MockEventParameters{ + params = events.MockEventParameters{ FromUserID: fromUser, ToUserID: toUser, Transport: models.TransportWebhook, @@ -51,7 +51,7 @@ func TestEventSub(t *testing.T) { a.NotEmpty(body.Event.EndsAt) a.Empty(body.Event.EndedAt) - params = *&events.MockEventParameters{ + params = events.MockEventParameters{ FromUserID: fromUser, ToUserID: toUser, Transport: models.TransportWebhook, @@ -72,7 +72,7 @@ func TestEventSub(t *testing.T) { func TestFakeTransport(t *testing.T) { a := test_setup.SetupTestEnv(t) - params := *&events.MockEventParameters{ + params := events.MockEventParameters{ FromUserID: fromUser, ToUserID: toUser, Transport: "fake_transport", diff --git a/internal/events/types/prediction/prediction_test.go b/internal/events/types/prediction/prediction_test.go index 91b993bb..b00cc374 100644 --- a/internal/events/types/prediction/prediction_test.go +++ b/internal/events/types/prediction/prediction_test.go @@ -17,7 +17,7 @@ var toUser = "4567" func TestEventSub(t *testing.T) { a := test_setup.SetupTestEnv(t) - params := *&events.MockEventParameters{ + params := events.MockEventParameters{ FromUserID: fromUser, ToUserID: toUser, Transport: models.TransportWebhook, @@ -32,7 +32,7 @@ func TestEventSub(t *testing.T) { err = json.Unmarshal(r.JSON, &body) a.Nil(err) - params = *&events.MockEventParameters{ + params = events.MockEventParameters{ FromUserID: fromUser, ToUserID: toUser, Transport: models.TransportWebhook, @@ -47,7 +47,7 @@ func TestEventSub(t *testing.T) { err = json.Unmarshal(r.JSON, &body) a.Nil(err) - params = *&events.MockEventParameters{ + params = events.MockEventParameters{ FromUserID: fromUser, ToUserID: toUser, Transport: models.TransportWebhook, @@ -61,7 +61,7 @@ func TestEventSub(t *testing.T) { err = json.Unmarshal(r.JSON, &body) a.Nil(err) - params = *&events.MockEventParameters{ + params = events.MockEventParameters{ FromUserID: fromUser, ToUserID: toUser, Transport: models.TransportWebhook, @@ -79,7 +79,7 @@ func TestEventSub(t *testing.T) { func TestFakeTransport(t *testing.T) { a := test_setup.SetupTestEnv(t) - params := *&events.MockEventParameters{ + params := events.MockEventParameters{ FromUserID: fromUser, ToUserID: toUser, Transport: "fake_transport", diff --git a/internal/events/types/raid/raid_test.go b/internal/events/types/raid/raid_test.go index 80f54b4a..786c6e16 100644 --- a/internal/events/types/raid/raid_test.go +++ b/internal/events/types/raid/raid_test.go @@ -17,7 +17,7 @@ var toUser = "4567" func TestEventSub(t *testing.T) { a := test_setup.SetupTestEnv(t) - params := *&events.MockEventParameters{ + params := events.MockEventParameters{ FromUserID: fromUser, ToUserID: toUser, Transport: models.TransportWebhook, @@ -38,7 +38,7 @@ func TestEventSub(t *testing.T) { func TestFakeTransport(t *testing.T) { a := test_setup.SetupTestEnv(t) - params := *&events.MockEventParameters{ + params := events.MockEventParameters{ FromUserID: fromUser, ToUserID: toUser, Transport: "fake_transport", diff --git a/internal/events/types/shield_mode/shield_mode_test.go b/internal/events/types/shield_mode/shield_mode_test.go index 3ca0beeb..5f2ae74e 100644 --- a/internal/events/types/shield_mode/shield_mode_test.go +++ b/internal/events/types/shield_mode/shield_mode_test.go @@ -17,7 +17,7 @@ var toUser = "4567" func TestEventSub(t *testing.T) { a := test_setup.SetupTestEnv(t) - beginParams := *&events.MockEventParameters{ + beginParams := events.MockEventParameters{ FromUserID: fromUser, ToUserID: toUser, Transport: models.TransportWebhook, @@ -25,7 +25,7 @@ func TestEventSub(t *testing.T) { SubscriptionStatus: "enabled", Cost: 0, } - endParams := *&events.MockEventParameters{ + endParams := events.MockEventParameters{ FromUserID: fromUser, ToUserID: toUser, Transport: models.TransportWebhook, @@ -51,14 +51,14 @@ func TestEventSub(t *testing.T) { func TestFakeTransport(t *testing.T) { a := test_setup.SetupTestEnv(t) - beginParams := *&events.MockEventParameters{ + beginParams := events.MockEventParameters{ FromUserID: fromUser, ToUserID: toUser, Transport: "fake_transport", Trigger: "shield-mode-begin", SubscriptionStatus: "enabled", } - endParams := *&events.MockEventParameters{ + endParams := events.MockEventParameters{ FromUserID: fromUser, ToUserID: toUser, Transport: "fake_transport", diff --git a/internal/events/types/shoutout/shoutout_test.go b/internal/events/types/shoutout/shoutout_test.go index 3ce11898..b01716d7 100644 --- a/internal/events/types/shoutout/shoutout_test.go +++ b/internal/events/types/shoutout/shoutout_test.go @@ -17,7 +17,7 @@ var toUser = "4567" func TestEventSub(t *testing.T) { a := test_setup.SetupTestEnv(t) - beginParams := *&events.MockEventParameters{ + beginParams := events.MockEventParameters{ FromUserID: fromUser, ToUserID: toUser, Transport: models.TransportWebhook, @@ -25,7 +25,7 @@ func TestEventSub(t *testing.T) { SubscriptionStatus: "enabled", Cost: 0, } - endParams := *&events.MockEventParameters{ + endParams := events.MockEventParameters{ FromUserID: fromUser, ToUserID: toUser, Transport: models.TransportWebhook, @@ -52,14 +52,14 @@ func TestEventSub(t *testing.T) { func TestFakeTransport(t *testing.T) { a := test_setup.SetupTestEnv(t) - beginParams := *&events.MockEventParameters{ + beginParams := events.MockEventParameters{ FromUserID: fromUser, ToUserID: toUser, Transport: "fake_transport", Trigger: "shoutout-create", SubscriptionStatus: "enabled", } - endParams := *&events.MockEventParameters{ + endParams := events.MockEventParameters{ FromUserID: fromUser, ToUserID: toUser, Transport: "fake_transport", diff --git a/internal/events/types/streamdown/streamdown_test.go b/internal/events/types/streamdown/streamdown_test.go index f28270db..c3f5530e 100644 --- a/internal/events/types/streamdown/streamdown_test.go +++ b/internal/events/types/streamdown/streamdown_test.go @@ -17,7 +17,7 @@ var toUser = "4567" func TestEventSub(t *testing.T) { a := test_setup.SetupTestEnv(t) - params := *&events.MockEventParameters{ + params := events.MockEventParameters{ FromUserID: fromUser, ToUserID: toUser, Transport: models.TransportWebhook, @@ -38,7 +38,7 @@ func TestEventSub(t *testing.T) { func TestFakeTransport(t *testing.T) { a := test_setup.SetupTestEnv(t) - params := *&events.MockEventParameters{ + params := events.MockEventParameters{ FromUserID: fromUser, ToUserID: toUser, Transport: "fake_transport", diff --git a/internal/events/types/streamup/streamup_test.go b/internal/events/types/streamup/streamup_test.go index e7ff10b2..15782d55 100644 --- a/internal/events/types/streamup/streamup_test.go +++ b/internal/events/types/streamup/streamup_test.go @@ -17,7 +17,7 @@ var toUser = "4567" func TestEventSub(t *testing.T) { a := test_setup.SetupTestEnv(t) - params := *&events.MockEventParameters{ + params := events.MockEventParameters{ FromUserID: fromUser, ToUserID: toUser, Transport: models.TransportWebhook, @@ -38,7 +38,7 @@ func TestEventSub(t *testing.T) { func TestFakeTransport(t *testing.T) { a := test_setup.SetupTestEnv(t) - params := *&events.MockEventParameters{ + params := events.MockEventParameters{ FromUserID: fromUser, ToUserID: toUser, Transport: "fake_transport", diff --git a/internal/events/types/subscription_message/subscription_message_test.go b/internal/events/types/subscription_message/subscription_message_test.go index 98793811..70e4fdce 100644 --- a/internal/events/types/subscription_message/subscription_message_test.go +++ b/internal/events/types/subscription_message/subscription_message_test.go @@ -19,7 +19,7 @@ func TestEventSub(t *testing.T) { ten := 10 tierThree := "3000" - params := *&events.MockEventParameters{ + params := events.MockEventParameters{ FromUserID: fromUser, ToUserID: toUser, Transport: models.TransportWebhook, @@ -37,7 +37,7 @@ func TestEventSub(t *testing.T) { a.Equal(&ten, body.Event.StreakMonths) a.GreaterOrEqual(body.Event.CumulativeMonths, 10) - params = *&events.MockEventParameters{ + params = events.MockEventParameters{ FromUserID: fromUser, ToUserID: toUser, Transport: models.TransportWebhook, @@ -61,7 +61,7 @@ func TestEventSub(t *testing.T) { func TestFakeTransport(t *testing.T) { a := test_setup.SetupTestEnv(t) - params := *&events.MockEventParameters{ + params := events.MockEventParameters{ FromUserID: fromUser, ToUserID: toUser, Transport: "fake_transport", diff --git a/internal/events/types/unban/unban.go b/internal/events/types/unban/unban.go index 205ab31f..0daa787d 100644 --- a/internal/events/types/unban/unban.go +++ b/internal/events/types/unban/unban.go @@ -47,7 +47,7 @@ func (e Event) GenerateEvent(params events.MockEventParameters) (events.MockEven ModeratorUserName: "CLIModerator", } - body := *&models.EventsubResponse{ + body := models.EventsubResponse{ Subscription: models.EventsubSubscription{ ID: params.ID, Status: params.SubscriptionStatus, diff --git a/internal/events/types/user/user_update_test.go b/internal/events/types/user/user_update_test.go index f90a459f..bb986a36 100644 --- a/internal/events/types/user/user_update_test.go +++ b/internal/events/types/user/user_update_test.go @@ -16,7 +16,7 @@ var toUser = "4567" func TestEventSub(t *testing.T) { a := test_setup.SetupTestEnv(t) - params := *&events.MockEventParameters{ + params := events.MockEventParameters{ ToUserID: toUser, Transport: models.TransportWebhook, Trigger: "user-update", @@ -35,7 +35,7 @@ func TestEventSub(t *testing.T) { func TestFakeTransport(t *testing.T) { a := test_setup.SetupTestEnv(t) - params := *&events.MockEventParameters{ + params := events.MockEventParameters{ ToUserID: toUser, Transport: "fake_transport", Trigger: "unsubscribe",