Skip to content

Commit

Permalink
add more tests for remote name validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Jul 12, 2024
1 parent ed66357 commit af64f8f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions gix/tests/remote/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,16 @@ mod ref_map;
mod save;
mod name {

#[test]
fn origin_is_valid() {
assert!(gix::remote::name::validated("origin").is_ok());
}

#[test]
fn multiple_slashes_are_valid() {
assert!(gix::remote::name::validated("origin/another").is_ok());
}

#[test]
fn empty_is_invalid() {
assert!(gix::remote::name::validated("").is_err());
Expand Down

0 comments on commit af64f8f

Please sign in to comment.