diff options
Diffstat (limited to 'src/args.rs')
| -rw-r--r-- | src/args.rs | 7 | 
1 files changed, 7 insertions, 0 deletions
diff --git a/src/args.rs b/src/args.rs index f96cba4..134f785 100644 --- a/src/args.rs +++ b/src/args.rs @@ -165,6 +165,13 @@ impl Args {          Self::from_given_args_and_given_env(args, env_makeflags)      } +    #[cfg(test)] +    pub(crate) fn empty() -> Self { +        let env_makeflags = String::new(); +        let args = vec![OsString::from("makers")]; +        Self::from_given_args_and_given_env(args.into_iter(), env_makeflags) +    } +      pub(crate) fn targets(&self) -> impl Iterator<Item = &String> {          self.targets_or_macros.iter().filter(|x| !x.contains('='))      }  |