mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-24 18:10:56 -05:00
refactor: Update naming
This commit is contained in:
parent
3bbd9b1c72
commit
09513fdc13
1 changed files with 6 additions and 6 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue