Rename test modules to "tests" for consistency.

The majority of the test modules were already named "tests", and that's
what the example in the Rust book uses, so switch to that for all test
modules, for consistency.
This commit is contained in:
Dan Gohman
2018-09-28 14:50:01 -07:00
parent 52aa1d292a
commit b94cf6c65b
11 changed files with 11 additions and 12 deletions

View File

@@ -158,7 +158,7 @@ fn slice_shift<T: Copy>(s: &mut [T], n: usize) {
} }
#[cfg(test)] #[cfg(test)]
mod test { mod tests {
use super::*; use super::*;
use entity::EntityRef; use entity::EntityRef;

View File

@@ -429,7 +429,7 @@ where
} }
#[cfg(test)] #[cfg(test)]
mod test { mod tests {
use super::super::NodeData; use super::super::NodeData;
use super::*; use super::*;
use std::mem; use std::mem;

View File

@@ -582,7 +582,7 @@ where
} }
#[cfg(test)] #[cfg(test)]
mod test { mod tests {
use super::*; use super::*;
use std::mem; use std::mem;
use std::string::ToString; use std::string::ToString;

View File

@@ -703,7 +703,7 @@ impl<F: Forest> fmt::Display for Path<F> {
} }
#[cfg(test)] #[cfg(test)]
mod test { mod tests {
use super::super::{Forest, NodeData, NodePool}; use super::super::{Forest, NodeData, NodePool};
use super::*; use super::*;
use std::cmp::Ordering; use std::cmp::Ordering;

View File

@@ -357,7 +357,7 @@ where
} }
#[cfg(test)] #[cfg(test)]
mod test { mod tests {
use super::super::NodeData; use super::super::NodeData;
use super::*; use super::*;
use std::mem; use std::mem;

View File

@@ -666,7 +666,7 @@ impl DominatorTreePreorder {
} }
#[cfg(test)] #[cfg(test)]
mod test { mod tests {
use super::*; use super::*;
use cursor::{Cursor, FuncCursor}; use cursor::{Cursor, FuncCursor};
use flowgraph::ControlFlowGraph; use flowgraph::ControlFlowGraph;

View File

@@ -190,7 +190,7 @@ fn make_funcref(libcall: LibCall, func: &mut Function, sig: Signature, isa: &Tar
} }
#[cfg(test)] #[cfg(test)]
mod test { mod tests {
use super::*; use super::*;
use std::string::ToString; use std::string::ToString;

View File

@@ -230,8 +230,7 @@ impl LoopAnalysis {
} }
#[cfg(test)] #[cfg(test)]
mod test { mod tests {
use cursor::{Cursor, FuncCursor}; use cursor::{Cursor, FuncCursor};
use dominator_tree::DominatorTree; use dominator_tree::DominatorTree;
use flowgraph::ControlFlowGraph; use flowgraph::ControlFlowGraph;

View File

@@ -396,7 +396,7 @@ impl VirtRegs {
} }
#[cfg(test)] #[cfg(test)]
mod test { mod tests {
use super::*; use super::*;
use entity::EntityRef; use entity::EntityRef;
use ir::Value; use ir::Value;

View File

@@ -242,7 +242,7 @@ mod details {
} }
#[cfg(test)] #[cfg(test)]
mod test { mod tests {
use super::*; use super::*;
use std::string::ToString; use std::string::ToString;

View File

@@ -88,7 +88,7 @@ impl TopoOrder {
} }
#[cfg(test)] #[cfg(test)]
mod test { mod tests {
use super::*; use super::*;
use cursor::{Cursor, FuncCursor}; use cursor::{Cursor, FuncCursor};
use dominator_tree::DominatorTree; use dominator_tree::DominatorTree;