Skip to content

Commit 25c4ab2

Browse files
committed
add missing cfg(test)
1 parent 1504931 commit 25c4ab2

15 files changed

+15
-0
lines changed

src/helix/users/get_user_block_list.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ impl helix::Paginated for GetUserBlockListRequest {
8787
fn set_pagination(&mut self, cursor: Option<helix::Cursor>) { self.after = cursor }
8888
}
8989

90+
#[cfg(test)]
9091
#[test]
9192
fn test_request() {
9293
use helix::*;

src/helix/users/get_users.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ impl Request for GetUsersRequest {
9898

9999
impl RequestGet for GetUsersRequest {}
100100

101+
#[cfg(test)]
101102
#[test]
102103
fn test_request() {
103104
use helix::*;

src/helix/users/get_users_follows.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ impl helix::Paginated for GetUsersFollowsRequest {
148148
fn set_pagination(&mut self, cursor: Option<helix::Cursor>) { self.after = cursor }
149149
}
150150

151+
#[cfg(test)]
151152
#[test]
152153
fn test_request() {
153154
use helix::*;

src/helix/users/unblock_user.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ impl RequestDelete for UnblockUserRequest {
9696
}
9797
}
9898

99+
#[cfg(test)]
99100
#[test]
100101
fn test_request() {
101102
use helix::*;

src/helix/videos/delete_videos.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ impl RequestDelete for DeleteVideosRequest {
9797
}
9898
}
9999

100+
#[cfg(test)]
100101
#[test]
101102
fn test_request() {
102103
use helix::*;

src/helix/videos/get_videos.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ impl helix::Paginated for GetVideosRequest {
150150
fn set_pagination(&mut self, cursor: Option<helix::Cursor>) { self.after = cursor }
151151
}
152152

153+
#[cfg(test)]
153154
#[test]
154155
fn test_request() {
155156
use helix::*;

src/helix/webhooks/get_webhook_subscriptions.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ impl helix::Paginated for GetWebhookSubscriptionsRequest {
9999
fn set_pagination(&mut self, cursor: Option<helix::Cursor>) { self.after = cursor; }
100100
}
101101

102+
#[cfg(test)]
102103
#[test]
103104
fn test_request() {
104105
use helix::*;

src/helix/webhooks/hub.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ impl<T: Topic> RequestPost for WebhookHubRequest<T> {
219219
}
220220
}
221221

222+
#[cfg(test)]
222223
#[test]
223224
fn test_request() {
224225
use helix::*;

src/helix/webhooks/topics/hypetrain/hypetrain_event.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ pub struct HypeTrainEventTopic {
2222
pub broadcaster_id: types::UserId,
2323
}
2424

25+
#[cfg(test)]
2526
#[test]
2627
fn test_topic() {
2728
use crate::helix::webhooks::hub::*;

src/helix/webhooks/topics/moderation/channel_ban_change_events.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ pub struct ChannelBanChangeEventsTopic {
2929
#[inline(always)]
3030
const fn one() -> u32 { 1 }
3131

32+
#[cfg(test)]
3233
#[test]
3334
fn test_topic() {
3435
use crate::helix::webhooks::hub::*;

src/helix/webhooks/topics/moderation/moderator_change_events.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ pub struct ModeratorChangedTopic {
2929
#[inline(always)]
3030
const fn one() -> u32 { 1 }
3131

32+
#[cfg(test)]
3233
#[test]
3334
fn test_topic() {
3435
use crate::helix::webhooks::hub::*;

src/helix/webhooks/topics/streams/stream_changed.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ pub struct StreamChangedTopic {
2222
pub user_id: types::UserId,
2323
}
2424

25+
#[cfg(test)]
2526
#[test]
2627
fn test_topic() {
2728
use crate::helix::webhooks::hub::*;

src/helix/webhooks/topics/subscriptions/subscription_events.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ pub struct SubscriptionEventsTopic {
2929
#[inline(always)]
3030
const fn one() -> u32 { 1 }
3131

32+
#[cfg(test)]
3233
#[test]
3334
fn test_topic() {
3435
use crate::helix::webhooks::hub::*;

src/helix/webhooks/topics/users/user_changed.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ pub struct UserChangedTopic {
2222
pub id: types::UserId,
2323
}
2424

25+
#[cfg(test)]
2526
#[test]
2627
fn test_topic() {
2728
use crate::helix::webhooks::hub::*;

src/helix/webhooks/topics/users/user_follows.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ pub struct UserFollowsTopic {
3232
#[inline(always)]
3333
const fn one() -> u32 { 1 }
3434

35+
#[cfg(test)]
3536
#[test]
3637
fn test_topic() {
3738
use crate::helix::webhooks::hub::*;

0 commit comments

Comments
 (0)