-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmod.rs
More file actions
29 lines (27 loc) · 1.07 KB
/
mod.rs
File metadata and controls
29 lines (27 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//! Testing utilities for `UserOutput` testing
//!
//! This module provides simplified testing infrastructure for capturing and asserting on output
//! in tests across the codebase. It is organized into focused submodules:
//!
//! - [`test_writer`] - Writer implementation for capturing output to shared buffers
//! - [`test_user_output`] - Test wrapper for `UserOutput` with buffer management
//!
//! # Quick Start
//!
//! For most tests, use `TestUserOutput::new()` to create a test output instance:
//!
//! ```rust,ignore
//! use torrust_tracker_deployer_lib::presentation::cli::views::testing::TestUserOutput;
//! use torrust_tracker_deployer_lib::presentation::cli::views::VerbosityLevel;
//!
//! let mut test_output = TestUserOutput::new(VerbosityLevel::Normal);
//! test_output.output.progress("Processing...");
//!
//! assert_eq!(test_output.stderr(), "⏳ Processing...\n");
//! assert_eq!(test_output.stdout(), "");
//! ```
pub mod test_user_output;
pub mod test_writer;
// Re-export main types for convenience
pub use test_user_output::TestUserOutput;
pub use test_writer::TestWriter;