Skip to content

Commit b7080ac

Browse files
committed
Rename run_for_file -> convert_via_file
1 parent 7400d39 commit b7080ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/stackable-versioned/tests/conversion.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ impl From<String> for Gender {
8686
#[test]
8787
fn pass() {
8888
glob!("./inputs/conversions/pass/", "*.json", |path| {
89-
let (request, response) = run_for_file(path);
89+
let (request, response) = convert_via_file(path);
9090

9191
let formatted = serde_json::to_string_pretty(&response)
9292
.expect("Failed to serialize ConversionResponse");
@@ -108,7 +108,7 @@ fn pass() {
108108
#[test]
109109
fn fail() {
110110
glob!("./inputs/conversions/fail/", "*.json", |path| {
111-
let (request, response) = run_for_file(path);
111+
let (request, response) = convert_via_file(path);
112112

113113
let formatted = serde_json::to_string_pretty(&response)
114114
.expect("Failed to serialize ConversionResponse");
@@ -129,7 +129,7 @@ fn fail() {
129129
})
130130
}
131131

132-
fn run_for_file(path: &Path) -> (ConversionReview, ConversionReview) {
132+
fn convert_via_file(path: &Path) -> (ConversionReview, ConversionReview) {
133133
let request: ConversionReview =
134134
serde_json::from_reader(File::open(path).expect("failed to open test file"))
135135
.expect("failed to parse ConversionReview from test file");

0 commit comments

Comments
 (0)