test(jspg): rename items fixture to array and resolve unused HashMap warning
- Rename fixtures/items.json to fixtures/array.json to better reflect array testing constraints. - Update reference paths in src/tests/fixtures.rs and across other fixture JSON files. - Remove unused HashMap import in src/validator/rules/dict.rs to resolve the compiler warning.
This commit is contained in:
@ -1697,138 +1697,6 @@ fn test_not_11_1() {
|
||||
crate::tests::runner::run_test_case(&path, 11, 1).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_items_0_0() {
|
||||
let path = format!("{}/fixtures/items.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 0, 0).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_items_0_1() {
|
||||
let path = format!("{}/fixtures/items.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 0, 1).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_items_0_2() {
|
||||
let path = format!("{}/fixtures/items.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 0, 2).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_items_0_3() {
|
||||
let path = format!("{}/fixtures/items.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 0, 3).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_items_1_0() {
|
||||
let path = format!("{}/fixtures/items.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 1, 0).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_items_1_1() {
|
||||
let path = format!("{}/fixtures/items.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 1, 1).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_items_2_0() {
|
||||
let path = format!("{}/fixtures/items.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 2, 0).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_items_2_1() {
|
||||
let path = format!("{}/fixtures/items.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 2, 1).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_items_3_0() {
|
||||
let path = format!("{}/fixtures/items.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 3, 0).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_items_3_1() {
|
||||
let path = format!("{}/fixtures/items.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 3, 1).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_items_3_2() {
|
||||
let path = format!("{}/fixtures/items.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 3, 2).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_items_4_0() {
|
||||
let path = format!("{}/fixtures/items.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 4, 0).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_items_5_0() {
|
||||
let path = format!("{}/fixtures/items.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 5, 0).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_items_6_0() {
|
||||
let path = format!("{}/fixtures/items.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 6, 0).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_items_6_1() {
|
||||
let path = format!("{}/fixtures/items.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 6, 1).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_items_7_0() {
|
||||
let path = format!("{}/fixtures/items.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 7, 0).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_items_7_1() {
|
||||
let path = format!("{}/fixtures/items.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 7, 1).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_items_8_0() {
|
||||
let path = format!("{}/fixtures/items.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 8, 0).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_items_8_1() {
|
||||
let path = format!("{}/fixtures/items.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 8, 1).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_items_9_0() {
|
||||
let path = format!("{}/fixtures/items.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 9, 0).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_items_9_1() {
|
||||
let path = format!("{}/fixtures/items.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 9, 1).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_items_9_2() {
|
||||
let path = format!("{}/fixtures/items.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 9, 2).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_traits_0_0() {
|
||||
let path = format!("{}/fixtures/traits.json", env!("CARGO_MANIFEST_DIR"));
|
||||
@ -1859,6 +1727,114 @@ fn test_traits_3_0() {
|
||||
crate::tests::runner::run_test_case(&path, 3, 0).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_array_0_0() {
|
||||
let path = format!("{}/fixtures/array.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 0, 0).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_array_0_1() {
|
||||
let path = format!("{}/fixtures/array.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 0, 1).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_array_0_2() {
|
||||
let path = format!("{}/fixtures/array.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 0, 2).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_array_1_0() {
|
||||
let path = format!("{}/fixtures/array.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 1, 0).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_array_2_0() {
|
||||
let path = format!("{}/fixtures/array.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 2, 0).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_array_2_1() {
|
||||
let path = format!("{}/fixtures/array.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 2, 1).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_array_3_0() {
|
||||
let path = format!("{}/fixtures/array.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 3, 0).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_array_3_1() {
|
||||
let path = format!("{}/fixtures/array.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 3, 1).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_array_3_2() {
|
||||
let path = format!("{}/fixtures/array.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 3, 2).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_array_3_3() {
|
||||
let path = format!("{}/fixtures/array.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 3, 3).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_array_3_4() {
|
||||
let path = format!("{}/fixtures/array.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 3, 4).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_array_4_0() {
|
||||
let path = format!("{}/fixtures/array.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 4, 0).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_array_4_1() {
|
||||
let path = format!("{}/fixtures/array.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 4, 1).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_array_4_2() {
|
||||
let path = format!("{}/fixtures/array.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 4, 2).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_array_5_0() {
|
||||
let path = format!("{}/fixtures/array.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 5, 0).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_array_6_0() {
|
||||
let path = format!("{}/fixtures/array.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 6, 0).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_array_7_0() {
|
||||
let path = format!("{}/fixtures/array.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 7, 0).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_array_7_1() {
|
||||
let path = format!("{}/fixtures/array.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 7, 1).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_enum_0_0() {
|
||||
let path = format!("{}/fixtures/enum.json", env!("CARGO_MANIFEST_DIR"));
|
||||
|
||||
Reference in New Issue
Block a user