Skip to content

Commit

Permalink
refactor: Update naming
Browse files Browse the repository at this point in the history
  • Loading branch information
Ed Page committed Oct 25, 2019
1 parent 3bbd9b1 commit 09513fd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions benches/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand All @@ -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();
Expand All @@ -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();
Expand All @@ -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();
Expand All @@ -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();
Expand Down

0 comments on commit 09513fd

Please sign in to comment.