Fix inconsistent test module naming
This commit is contained in:
parent
6b327b6f8f
commit
871a22eaf4
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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"));
|
||||
|
||||
|
|
|
@ -188,7 +188,7 @@ impl Urls {
|
|||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
use alacritty_terminal::index::{Column, Line};
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -173,7 +173,7 @@ impl MessageBuffer {
|
|||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
mod tests {
|
||||
use super::{Message, MessageBuffer, MIN_FREE_LINES};
|
||||
use crate::term::{color, SizeInfo};
|
||||
|
||||
|
|
|
@ -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};
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue