Skip to content

Commit

Permalink
test(cargo-shuttle): add debug assertion for command-line arguments (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Oct 4, 2023
1 parent 4707027 commit faaf9e8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cargo-shuttle/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -355,9 +355,14 @@ pub(crate) fn parse_init_path(path: OsString) -> Result<PathBuf, io::Error> {

#[cfg(test)]
mod tests {
use super::*;
use crate::tests::path_from_workspace_root;
use clap::CommandFactory;

use super::*;
#[test]
fn test_shuttle_args() {
ShuttleArgs::command().debug_assert();
}

#[test]
fn test_init_args_framework() {
Expand Down

0 comments on commit faaf9e8

Please sign in to comment.