Skip to content

Commit

Permalink
Start filling out other cases
Browse files Browse the repository at this point in the history
  • Loading branch information
c-git committed Nov 4, 2023
1 parent ee31030 commit b9affda
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/checks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,18 @@ fn allow_no_vcs(#[case] test_dir: TestDir) {
}

#[rstest]
// No Dirty, No Staged
#[case(false, false, TD::NoVCS, Err(VCSError::NoVCS))]
#[case(false, false, TD::Clean, Err(VCSError::NoVCS))]
#[case(false, false, TD::StagedOnly, Err(VCSError::NoVCS))]
#[case(false, false, TD::DirtyOnly, Err(VCSError::NoVCS))]
#[case(false, false, TD::StagedAndDirty, Err(VCSError::NoVCS))]
// No Dirty, Yes Staged
#[case(false, true, TD::NoVCS, Err(VCSError::NoVCS))]
// Yes Dirty, No Staged
#[case(true, false, TD::NoVCS, Err(VCSError::NoVCS))]
// Yes Dirty, Yes Staged
#[case(true, true, TD::NoVCS, Err(VCSError::NoVCS))]
fn vcs_required(
#[case] allow_dirty: bool,
#[case] allow_staged: bool,
Expand Down

0 comments on commit b9affda

Please sign in to comment.