File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
crates/stackable-versioned/tests Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ impl From<String> for Gender {
86
86
#[ test]
87
87
fn pass ( ) {
88
88
glob ! ( "./inputs/conversions/pass/" , "*.json" , |path| {
89
- let ( request, response) = run_for_file ( path) ;
89
+ let ( request, response) = convert_via_file ( path) ;
90
90
91
91
let formatted = serde_json:: to_string_pretty( & response)
92
92
. expect( "Failed to serialize ConversionResponse" ) ;
@@ -108,7 +108,7 @@ fn pass() {
108
108
#[ test]
109
109
fn fail ( ) {
110
110
glob ! ( "./inputs/conversions/fail/" , "*.json" , |path| {
111
- let ( request, response) = run_for_file ( path) ;
111
+ let ( request, response) = convert_via_file ( path) ;
112
112
113
113
let formatted = serde_json:: to_string_pretty( & response)
114
114
. expect( "Failed to serialize ConversionResponse" ) ;
@@ -129,7 +129,7 @@ fn fail() {
129
129
} )
130
130
}
131
131
132
- fn run_for_file ( path : & Path ) -> ( ConversionReview , ConversionReview ) {
132
+ fn convert_via_file ( path : & Path ) -> ( ConversionReview , ConversionReview ) {
133
133
let request: ConversionReview =
134
134
serde_json:: from_reader ( File :: open ( path) . expect ( "failed to open test file" ) )
135
135
. expect ( "failed to parse ConversionReview from test file" ) ;
You can’t perform that action at this time.
0 commit comments