Skip to content

Commit

Permalink
rename dummy to test
Browse files Browse the repository at this point in the history
  • Loading branch information
GunnarMorrigan committed Jan 16, 2024
1 parent dc29b86 commit df7997f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ impl MqttClient {
}

/// This function is only here for you to use during testing of for example your handler
/// For a simple client look at [`MqttClient::dummy_client`]
/// For a simple client look at [`MqttClient::test_client`]
#[cfg(feature = "test")]
pub fn dummy_custom_client(available_packet_ids_r: Receiver<u16>, to_network_s: Sender<Packet>, max_packet_size: usize) -> Self {
pub fn test_custom_client(available_packet_ids_r: Receiver<u16>, to_network_s: Sender<Packet>, max_packet_size: usize) -> Self {
Self {
available_packet_ids_r,
to_network_s,
Expand All @@ -46,9 +46,9 @@ impl MqttClient {
}

/// This function is only here for you to use during testing of for example your handler
/// For control over the input of this type look at [`MqttClient::dummy_custom_client`]
/// For control over the input of this type look at [`MqttClient::test_custom_client`]
#[cfg(feature = "test")]
pub fn dummy_client() -> (Self, crate::available_packet_ids::AvailablePacketIds, Receiver<Packet>) {
pub fn test_client() -> (Self, crate::available_packet_ids::AvailablePacketIds, Receiver<Packet>) {
use async_channel::unbounded;

use crate::{available_packet_ids::AvailablePacketIds, util::constants::MAXIMUM_PACKET_SIZE};
Expand Down

0 comments on commit df7997f

Please sign in to comment.