File tree Expand file tree Collapse file tree 5 files changed +16
-12
lines changed Expand file tree Collapse file tree 5 files changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ use crate::os::Os;
4545mod server;
4646mod server_session;
4747mod server_connection;
48- mod util;
48+ pub ( crate ) mod util;
4949#[ cfg( test) ]
5050mod client_connection;
5151#[ cfg( test) ]
Original file line number Diff line number Diff line change 44pub fn ignore_error < E > ( result : Result < ( ) , E > ) {
55 let _ = result;
66}
7-
8- /// Enables tracing to stderr. Useful when debugging a particular test.
9- #[ cfg( test) ]
10- #[ allow( dead_code) ]
11- pub fn enable_tracing ( ) {
12- tracing_subscriber:: fmt ( )
13- . with_max_level ( tracing:: Level :: DEBUG )
14- . with_writer ( std:: io:: stderr)
15- . try_init ( )
16- . ok ( ) ;
17- }
Original file line number Diff line number Diff line change @@ -17,3 +17,5 @@ pub mod telemetry;
1717pub mod util;
1818
1919pub use mcp_client:: * ;
20+
21+ mod test_util;
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ mod os;
1111mod request;
1212mod telemetry;
1313mod util;
14+ mod test_util;
1415
1516use std:: process:: ExitCode ;
1617
Original file line number Diff line number Diff line change 1+ #![ cfg( test) ]
2+
3+ /// Enables tracing to stderr. Useful when debugging a particular test.
4+ #[ allow( dead_code) ]
5+ pub fn enable_tracing ( ) {
6+ tracing_subscriber:: fmt ( )
7+ . with_max_level ( tracing:: Level :: DEBUG )
8+ . with_ansi ( false )
9+ . with_writer ( std:: io:: stderr)
10+ . try_init ( )
11+ . ok ( ) ;
12+ }
You can’t perform that action at this time.
0 commit comments