From 09513fdc13da2916077500723cea34881fd69a48 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Fri, 25 Oct 2019 15:17:24 -0600 Subject: [PATCH] refactor: Update naming --- benches/file.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/benches/file.rs b/benches/file.rs index c653004..ccf3ff2 100644 --- a/benches/file.rs +++ b/benches/file.rs @@ -7,7 +7,7 @@ mod data; pub use assert_fs::prelude::*; #[bench] -fn process_empty(b: &mut test::Bencher) { +fn check_file_empty(b: &mut test::Bencher) { let temp = assert_fs::TempDir::new().unwrap(); let sample_path = temp.child("sample"); sample_path.write_str(data::EMPTY).unwrap(); @@ -21,7 +21,7 @@ fn process_empty(b: &mut test::Bencher) { } #[bench] -fn process_no_tokens(b: &mut test::Bencher) { +fn check_file_no_tokens(b: &mut test::Bencher) { let temp = assert_fs::TempDir::new().unwrap(); let sample_path = temp.child("sample"); sample_path.write_str(data::NO_TOKENS).unwrap(); @@ -35,7 +35,7 @@ fn process_no_tokens(b: &mut test::Bencher) { } #[bench] -fn process_single_token(b: &mut test::Bencher) { +fn check_file_single_token(b: &mut test::Bencher) { let temp = assert_fs::TempDir::new().unwrap(); let sample_path = temp.child("sample"); sample_path.write_str(data::SINGLE_TOKEN).unwrap(); @@ -49,7 +49,7 @@ fn process_single_token(b: &mut test::Bencher) { } #[bench] -fn process_sherlock(b: &mut test::Bencher) { +fn check_file_sherlock(b: &mut test::Bencher) { let temp = assert_fs::TempDir::new().unwrap(); let sample_path = temp.child("sample"); sample_path.write_str(data::SHERLOCK).unwrap(); @@ -63,7 +63,7 @@ fn process_sherlock(b: &mut test::Bencher) { } #[bench] -fn process_code(b: &mut test::Bencher) { +fn check_file_code(b: &mut test::Bencher) { let temp = assert_fs::TempDir::new().unwrap(); let sample_path = temp.child("sample"); sample_path.write_str(data::CODE).unwrap(); @@ -77,7 +77,7 @@ fn process_code(b: &mut test::Bencher) { } #[bench] -fn process_corpus(b: &mut test::Bencher) { +fn check_file_corpus(b: &mut test::Bencher) { let temp = assert_fs::TempDir::new().unwrap(); let sample_path = temp.child("sample"); sample_path.write_str(data::CORPUS).unwrap();