Fix inconsistent test module naming

This commit is contained in:
Christian Duerr 2020-01-28 12:32:35 +00:00 committed by GitHub
parent 6b327b6f8f
commit 871a22eaf4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 11 additions and 11 deletions

View File

@ -219,16 +219,16 @@ impl Options {
options.embed = matches.value_of("embed").map(ToOwned::to_owned);
match matches.occurrences_of("q") {
0 => {},
0 => (),
1 => options.log_level = LevelFilter::Error,
2 | _ => options.log_level = LevelFilter::Off,
_ => options.log_level = LevelFilter::Off,
}
match matches.occurrences_of("v") {
0 if !options.print_events => options.log_level = LevelFilter::Warn,
0 | 1 => options.log_level = LevelFilter::Info,
2 => options.log_level = LevelFilter::Debug,
3 | _ => options.log_level = LevelFilter::Trace,
_ => options.log_level = LevelFilter::Trace,
}
if let Some(dir) = matches.value_of("working-directory") {
@ -302,7 +302,7 @@ impl Options {
}
#[cfg(test)]
mod test {
mod tests {
use crate::cli::Options;
use crate::config::Config;

View File

@ -885,7 +885,7 @@ impl<'a> de::Deserialize<'a> for ModsWrapper {
}
#[cfg(test)]
mod test {
mod tests {
use glutin::event::ModifiersState;
use alacritty_terminal::term::TermMode;

View File

@ -215,7 +215,7 @@ fn print_deprecation_warnings(config: &Config) {
}
#[cfg(test)]
mod test {
mod tests {
static DEFAULT_ALACRITTY_CONFIG: &str =
include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/../alacritty.yml"));

View File

@ -188,7 +188,7 @@ impl Urls {
}
#[cfg(test)]
mod test {
mod tests {
use super::*;
use alacritty_terminal::index::{Column, Line};

View File

@ -288,7 +288,7 @@ impl<T> IndexMut<Line> for Storage<T> {
}
#[cfg(test)]
mod test {
mod tests {
use crate::grid::row::Row;
use crate::grid::storage::{Storage, MAX_CACHE_SIZE};
use crate::grid::GridCell;

View File

@ -173,7 +173,7 @@ impl MessageBuffer {
}
#[cfg(test)]
mod test {
mod tests {
use super::{Message, MessageBuffer, MIN_FREE_LINES};
use crate::term::{color, SizeInfo};

View File

@ -442,7 +442,7 @@ impl Selection {
/// and [EX] (at the start), or [BE] for a single cell. Partially selected cells
/// look like [ B] and [E ].
#[cfg(test)]
mod test {
mod tests {
use std::mem;
use super::{Selection, SelectionRange};

View File

@ -76,7 +76,7 @@ impl Drop for ChildExitWatcher {
}
#[cfg(test)]
mod test {
mod tests {
use std::os::windows::io::AsRawHandle;
use std::process::Command;
use std::time::Duration;