Skip to content

Commit

Permalink
mod testS {
Browse files Browse the repository at this point in the history
  • Loading branch information
jrouaix committed Feb 10, 2022
1 parent 5c1080d commit 417979b
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion codegenr/src/custom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ pub fn handlebars_add_script(handlebars: &mut Handlebars, script_file: impl AsRe
}

#[cfg(test)]
mod test {
mod tests {
use super::*;
use serde_json::json;

Expand Down
2 changes: 1 addition & 1 deletion codegenr/src/helpers/string_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ fn is_out_of_case(c: char) -> bool {
}

#[cfg(test)]
mod test {
mod tests {
use super::*;
use test_case::test_case;

Expand Down
2 changes: 1 addition & 1 deletion codegenr/src/loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ fn yaml_to_json_number(n: serde_yaml::Number) -> Result<serde_json::Number, Load
}

#[cfg(test)]
mod test {
mod tests {
use super::*;
use test_case::test_case;

Expand Down
2 changes: 1 addition & 1 deletion codegenr/src/processor/clean.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ impl Instruction for CleanInstruction {
}

#[cfg(test)]
mod test {
mod tests {
use super::*;
use crate::filesystem::{create_dir, create_file};
use tempdir::TempDir;
Expand Down
2 changes: 1 addition & 1 deletion codegenr/src/processor/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ impl InstructionLineHandler for FileLineHandler {
}

#[cfg(test)]
mod test {
mod tests {
use super::*;
use crate::filesystem::make_path_from_root;
use std::io::Read;
Expand Down
2 changes: 1 addition & 1 deletion codegenr/src/processor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ pub fn process(content: &str, output: String) -> Result<(), ProcessorError> {
}

#[cfg(test)]
mod test {
mod tests {
use super::*;

#[test]
Expand Down
2 changes: 1 addition & 1 deletion codegenr/src/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ pub fn get_templates_from_directory(dir_path: &str) -> Result<Vec<Template>, Ren
}

#[cfg(test)]
mod test {
mod tests {
use super::*;
use crate::helpers::handlebars_setup;

Expand Down
2 changes: 1 addition & 1 deletion codegenr/src/resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ impl RefInfo {
}

#[cfg(test)]
mod test {
mod tests {
use super::*;
use crate::loader::*;
use serde_json::json;
Expand Down

0 comments on commit 417979b

Please sign in to comment.