Skip to content

Commit e81a4c2

Browse files
committed
Merge rust-bitcoin#5044: test: remove obsolete debug output tests
e0e698e сhore(tests): remove obsolete debug-output coverage (Bugar) Pull request description: Removed two debug output tests that became obsolete after Debug implementation changes: - `witness_debug_can_display_empty_element` - no longer relevant since Witness Debug logic was rewritten - `sequence_debug_output` - redundant coverage already provided by test/api.rs ACKs for top commit: apoelstra: ACK e0e698e; successfully ran local tests Tree-SHA512: 450b5343840961d3f3f4528c61d71ad29ea03082fdb2de4787d6957363e255a9eefa4592956b48c498ddd5bb5b5ddfe738e907c467aef1511752bfcfc2f8759f
2 parents ed98e30 + e0e698e commit e81a4c2

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

bitcoin/src/blockdata/transaction.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2092,12 +2092,7 @@ mod tests {
20922092
}
20932093

20942094
#[test]
2095-
fn sequence_debug_output() {
2096-
let seq = Sequence::from_seconds_floor(1000);
2097-
println!("{:?}", seq)
2098-
}
20992095

2100-
#[test]
21012096
fn outpoint_format() {
21022097
let outpoint = OutPoint::COINBASE_PREVOUT;
21032098

primitives/src/witness.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -577,9 +577,6 @@ impl<'a> Arbitrary<'a> for Witness {
577577
mod test {
578578
#[cfg(feature = "alloc")]
579579
use alloc::vec;
580-
#[cfg(feature = "std")]
581-
use std::println;
582-
583580
use super::*;
584581

585582
// Appends all the indices onto the end of a list of elements.
@@ -595,13 +592,7 @@ mod test {
595592
fn single_empty_element() -> Witness { Witness::from([[0u8; 0]]) }
596593

597594
#[test]
598-
#[cfg(feature = "std")]
599-
fn witness_debug_can_display_empty_element() {
600-
let witness = single_empty_element();
601-
println!("{:?}", witness);
602-
}
603595

604-
#[test]
605596
fn witness_single_empty_element() {
606597
let mut got = Witness::new();
607598
got.push([]);

0 commit comments

Comments
 (0)