From: Steve Myers Date: Wed, 11 May 2022 17:12:51 +0000 (-0700) Subject: Disable regex tests when repl feature not enabled X-Git-Tag: v0.5.0~2^2 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/struct.CommandStringError.html?a=commitdiff_plain;h=953c097871d34d2606d55294313b1addc579dfa4;p=bdk-cli Disable regex tests when repl feature not enabled --- diff --git a/src/bdk_cli.rs b/src/bdk_cli.rs index 265561d..b3b0371 100644 --- a/src/bdk_cli.rs +++ b/src/bdk_cli.rs @@ -560,9 +560,12 @@ fn handle_command(cli_opts: CliOpts, network: Network, _backend: Backend) -> Res #[cfg(test)] mod test { + #[cfg(feature = "repl")] use crate::REPL_LINE_SPLIT_REGEX; + #[cfg(feature = "repl")] use regex::Regex; + #[cfg(feature = "repl")] #[test] fn test_regex_double_quotes() { let split_regex = Regex::new(REPL_LINE_SPLIT_REGEX).unwrap(); @@ -589,6 +592,7 @@ mod test { ); } + #[cfg(feature = "repl")] #[test] fn test_regex_single_quotes() { let split_regex = Regex::new(REPL_LINE_SPLIT_REGEX).unwrap();