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 22, 2024
1 parent 113cbcc commit 1267712
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 1267712

Please sign in to comment.