Fix inconsistent #[test] module naming

This commit is contained in:
Jonas Platte 2021-02-02 11:44:20 +01:00
parent 2edddd519e
commit 00121bdb4b
No known key found for this signature in database
GPG Key ID: 7D261D771D915378
6 changed files with 6 additions and 6 deletions

View File

@ -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};

View File

@ -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;

View File

@ -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")]

View File

@ -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;

View File

@ -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::{

View File

@ -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};