Skip to content

Commit

Permalink
test: adds test to ensure command line args don't conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
claymcleod committed Jan 26, 2024
1 parent bf2d92d commit 24d2881
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions bitbelay-cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,14 @@ fn main<H: BuildHasher>(build_hasher: H) -> anyhow::Result<()> {
pub fn wrapper<H: BuildHasher>(build_hasher: H) -> anyhow::Result<()> {
main(build_hasher)
}

#[cfg(test)]
mod tests {
use super::*;

#[test]
fn verify_cli() {
use clap::CommandFactory;
Args::command().debug_assert()
}
}

0 comments on commit 24d2881

Please sign in to comment.