Skip to content

Commit 3834dec

Browse files
committed
add tets
1 parent bf5df63 commit 3834dec

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/db/add_package.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1371,4 +1371,13 @@ mod test {
13711371
Ok(())
13721372
})
13731373
}
1374+
1375+
#[test_case("[]")]
1376+
#[test_case(r#"[["rand", "^0.9", "normal", false], ["sdl3", "^0.16", "normal", false]]"#)]
1377+
#[test_case(r#"[["vec_map", "^0.0.1", "normal", false]]"#)]
1378+
#[test_case(r#"[["byteorder","^0.5"],["clippy","^0"],["num","^0.1"],["quickcheck","^0.2"]]"#)]
1379+
fn test_parse_release_dependency_json(input: &str) -> Result<()> {
1380+
let deps: Vec<ReleaseDependency> = serde_json::from_str(input)?;
1381+
Ok(())
1382+
}
13741383
}

0 commit comments

Comments
 (0)