Fix inconsistent #[test] module naming
This commit is contained in:
parent
2edddd519e
commit
00121bdb4b
@ -124,7 +124,7 @@ pub enum VerificationMethod {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod test {
|
mod tests {
|
||||||
use super::{KeyAgreementProtocol, MessageAuthenticationCode};
|
use super::{KeyAgreementProtocol, MessageAuthenticationCode};
|
||||||
|
|
||||||
use serde_json::{from_value as from_json_value, json};
|
use serde_json::{from_value as from_json_value, json};
|
||||||
|
@ -84,7 +84,7 @@ pub struct Replacement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod test {
|
mod tests {
|
||||||
use crate::room::message::Relation;
|
use crate::room::message::Relation;
|
||||||
use matches::assert_matches;
|
use matches::assert_matches;
|
||||||
use ruma_identifiers::event_id;
|
use ruma_identifiers::event_id;
|
||||||
|
@ -57,7 +57,7 @@ where
|
|||||||
common_impls!(DeviceKeyId, try_from, "Device key ID with algorithm and device ID");
|
common_impls!(DeviceKeyId, try_from, "Device key ID with algorithm and device ID");
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod test {
|
mod tests {
|
||||||
use std::convert::TryFrom;
|
use std::convert::TryFrom;
|
||||||
|
|
||||||
#[cfg(feature = "serde")]
|
#[cfg(feature = "serde")]
|
||||||
|
@ -290,7 +290,7 @@ mod tweak_serde {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod test {
|
mod tests {
|
||||||
use std::time::{Duration, SystemTime};
|
use std::time::{Duration, SystemTime};
|
||||||
|
|
||||||
use js_int::uint;
|
use js_int::uint;
|
||||||
|
@ -60,7 +60,7 @@ pub fn to_canonical_value<T: Serialize>(value: T) -> Result<value::CanonicalJson
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod test {
|
mod tests {
|
||||||
use std::{collections::BTreeMap, convert::TryInto};
|
use std::{collections::BTreeMap, convert::TryInto};
|
||||||
|
|
||||||
use super::{
|
use super::{
|
||||||
|
@ -167,7 +167,7 @@ fn split_id(id: &str) -> Result<(Algorithm, String), SplitError<'_>> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod test {
|
mod tests {
|
||||||
use std::collections::BTreeMap;
|
use std::collections::BTreeMap;
|
||||||
|
|
||||||
use base64::{decode_config, STANDARD_NO_PAD};
|
use base64::{decode_config, STANDARD_NO_PAD};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user