Skip to content

Commit

Permalink
chore: format code
Browse files Browse the repository at this point in the history
Signed-off-by: peefy <[email protected]>
  • Loading branch information
Peefy committed Jan 11, 2024
1 parent 8f6b9f5 commit 256c8d2
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions kclvm/tools/src/vet/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,20 +77,14 @@ mod test_expr_builder {
},
},
};
use std::{
fs,
panic,
path::Path,
};
use std::{fs, panic, path::Path};

#[test]
fn test_build_with_json_no_schema_name() {
for test_name in TEST_CASES {
let file_path = construct_full_path(&format!(
"{}.{}",
Path::new(FILE_EXTENSIONS[0])
.join(test_name)
.display(),
Path::new(FILE_EXTENSIONS[0]).join(test_name).display(),
FILE_EXTENSIONS[0]
))
.unwrap();
Expand Down Expand Up @@ -402,9 +396,7 @@ mod test_validater {
for case in KCL_TEST_CASES {
let validated_file_path = construct_full_path(&format!(
"{}.{}",
Path::new("invalid_vet_cases_json")
.join(case)
.display(),
Path::new("invalid_vet_cases_json").join(case).display(),
"json"
))
.unwrap();
Expand Down Expand Up @@ -459,9 +451,7 @@ mod test_validater {
for case in KCL_TEST_CASES {
let validated_file_path = construct_full_path(&format!(
"{}.{}",
Path::new("invalid_vet_cases_yaml")
.join(case)
.display(),
Path::new("invalid_vet_cases_yaml").join(case).display(),
"yaml"
))
.unwrap();
Expand Down Expand Up @@ -513,9 +503,7 @@ mod test_validater {
for case in KCL_TEST_CASES {
let validated_file_path = construct_full_path(&format!(
"{}.{}",
Path::new("invalid_validate_cases")
.join(case)
.display(),
Path::new("invalid_validate_cases").join(case).display(),
file_suffix
))
.unwrap();
Expand Down

0 comments on commit 256c8d2

Please sign in to comment.