test: remove redundant coverage
This commit is contained in:
1 parent
6138e248cb
commit
6f0825c321
7 files changed
+7
-116
No files matched your search
+4
-17
@@ -357,22 +357,9 @@ mod tests {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn maven_invalid_too_few_parts() {
|
||||
assert_eq!(maven_coord_to_path("org.example:artifact"), None);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn maven_invalid_too_many_parts() {
|
||||
assert_eq!(maven_coord_to_path("a:b:c:d:e"), None);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn maven_invalid_single_part() {
|
||||
assert_eq!(maven_coord_to_path("just-a-string"), None);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn maven_empty_string() {
|
||||
assert_eq!(maven_coord_to_path(""), None);
|
||||
fn maven_invalid_coordinates() {
|
||||
for coordinate in ["org.example:artifact", "a:b:c:d:e", "just-a-string", ""] {
|
||||
assert_eq!(maven_coord_to_path(coordinate), None);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user