Skip to content

Commit

Permalink
test(input): add unit tests for PresenceInput and SubscribeInput
Browse files Browse the repository at this point in the history
Add unit tests to verify arithmetic operations with list of channels and groups in
`PresenceInput` and `SubscribeInput`.

refactor(cargo): update `Cargo.toml` to include `subscribe` and `presence`

Update `Cargo.toml` to include `subscribe` and `presence` features in `full` and
`default` feature sets.

refactor(dead_code): removed dead code attributes
  • Loading branch information
parfeon committed Aug 28, 2023
1 parent ee7958a commit 3bc2141
Show file tree
Hide file tree
Showing 6 changed files with 982 additions and 86 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ build = "build.rs"
[features]

# Enables all non-conflicting features
full = ["publish", "access", "serde", "reqwest", "aescbc", "parse_token", "blocking", "std", "tokio"]
full = ["publish", "subscribe", "presence", "access", "serde", "reqwest", "aescbc", "parse_token", "blocking", "std", "tokio"]

# Enables all default features
default = ["publish", "subscribe", "presence", "serde", "reqwest", "aescbc", "std", "blocking", "tokio"]
Expand Down
2 changes: 1 addition & 1 deletion src/core/event_engine/cancel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use crate::{
};

#[derive(Debug)]
pub struct CancellationTask {
pub(crate) struct CancellationTask {
cancel_rx: Receiver<String>,
id: String,
}
Expand Down
1 change: 0 additions & 1 deletion src/dx/presence/builders/set_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ impl<T, D> SetStateRequest<T, D> {
}
}

#[allow(dead_code)]
impl<T, D> SetStateRequestBuilder<T, D>
where
T: Transport,
Expand Down
Loading

0 comments on commit 3bc2141

Please sign in to comment.