Skip to content

Commit 953c097

Browse files
committed
Disable regex tests when repl feature not enabled
1 parent d5155a5 commit 953c097

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/bdk_cli.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,9 +560,12 @@ fn handle_command(cli_opts: CliOpts, network: Network, _backend: Backend) -> Res
560560

561561
#[cfg(test)]
562562
mod test {
563+
#[cfg(feature = "repl")]
563564
use crate::REPL_LINE_SPLIT_REGEX;
565+
#[cfg(feature = "repl")]
564566
use regex::Regex;
565567

568+
#[cfg(feature = "repl")]
566569
#[test]
567570
fn test_regex_double_quotes() {
568571
let split_regex = Regex::new(REPL_LINE_SPLIT_REGEX).unwrap();
@@ -589,6 +592,7 @@ mod test {
589592
);
590593
}
591594

595+
#[cfg(feature = "repl")]
592596
#[test]
593597
fn test_regex_single_quotes() {
594598
let split_regex = Regex::new(REPL_LINE_SPLIT_REGEX).unwrap();

0 commit comments

Comments
 (0)