mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 06:12:40 +00:00
refactor: Generalize test file name
This commit is contained in:
parent
bbf4722720
commit
a627778809
3 changed files with 9 additions and 11 deletions
|
@ -1,8 +0,0 @@
|
|||
use crate::Arg;
|
||||
|
||||
// This test will *fail to compile* if Arg is not Send + Sync
|
||||
#[test]
|
||||
fn arg_send_sync() {
|
||||
fn foo<T: Send + Sync>(_: T) {}
|
||||
foo(Arg::new("test"))
|
||||
}
|
|
@ -19,9 +19,7 @@ mod regex;
|
|||
mod debug_asserts;
|
||||
|
||||
#[cfg(test)]
|
||||
mod app_tests;
|
||||
#[cfg(test)]
|
||||
mod arg_tests;
|
||||
mod tests;
|
||||
|
||||
pub use app::App;
|
||||
pub use app_settings::{AppFlags, AppSettings};
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
use crate::App;
|
||||
use crate::Arg;
|
||||
|
||||
#[test]
|
||||
fn propagate_version() {
|
||||
|
@ -46,3 +47,10 @@ fn issue_2090() {
|
|||
.unwrap()
|
||||
.is_disable_version_flag_set());
|
||||
}
|
||||
|
||||
// This test will *fail to compile* if Arg is not Send + Sync
|
||||
#[test]
|
||||
fn arg_send_sync() {
|
||||
fn foo<T: Send + Sync>(_: T) {}
|
||||
foo(Arg::new("test"))
|
||||
}
|
Loading…
Reference in a new issue