]> Untitled Git - bdk-cli/commitdiff
Disable regex tests when repl feature not enabled
authorSteve Myers <steve@notmandatory.org>
Wed, 11 May 2022 17:12:51 +0000 (10:12 -0700)
committerSteve Myers <steve@notmandatory.org>
Wed, 11 May 2022 17:12:51 +0000 (10:12 -0700)
src/bdk_cli.rs

index 265561dbb76d843eefdf37fd0304986289fab4b8..b3b037156f7d5124c4cca37225b7fa43fc679092 100644 (file)
@@ -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();