Create unit test for test the command line arguments are compiled corectory
This commit is contained in:
parent
1953822025
commit
ea59f53869
1 changed files with 11 additions and 0 deletions
|
@ -487,3 +487,14 @@ impl Settings {
|
||||||
args
|
args
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(test)]
|
||||||
|
mod tests {
|
||||||
|
use super::*;
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_cli_arguments() {
|
||||||
|
use clap::CommandFactory;
|
||||||
|
Settings::command().debug_assert();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue