File tree Expand file tree Collapse file tree 4 files changed +6
-5
lines changed
tmc-langs-framework/src/io Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ mod output;
66use output:: { Output , OutputResult , Status } ;
77
88use anyhow:: { Context , Result } ;
9+ use clap:: { Error , ErrorKind } ;
910use serde:: Serialize ;
1011use std:: collections:: HashMap ;
1112use std:: env;
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ fn compress_project() {
2222 "--output-path" ,
2323 temp. path ( ) . join ( "zip.zip" ) . to_str ( ) . unwrap ( ) ,
2424 ] ) ;
25- println ! ( "out:\n {}" , String :: from_utf8( out. stdout) . unwrap( ) ) ;
26- println ! ( "err:\n {}" , String :: from_utf8( out. stderr) . unwrap( ) ) ;
25+ log :: debug !( "out:\n {}" , String :: from_utf8( out. stdout) . unwrap( ) ) ;
26+ log :: debug !( "err:\n {}" , String :: from_utf8( out. stderr) . unwrap( ) ) ;
2727 // TODO
2828}
Original file line number Diff line number Diff line change @@ -252,7 +252,7 @@ mod test {
252252 . unwrap ( ) ;
253253 let mut archive = ZipArchive :: new ( Cursor :: new ( zipped) ) . unwrap ( ) ;
254254 for i in 0 ..archive. len ( ) {
255- println ! ( "{:?}" , archive. by_index( i) . unwrap( ) . name( ) ) ;
255+ log :: debug !( "{:?}" , archive. by_index( i) . unwrap( ) . name( ) ) ;
256256 }
257257 assert ! ( archive
258258 . by_name( "exercise-name/src/main/java/AdaLovelace.java" )
Original file line number Diff line number Diff line change @@ -306,7 +306,7 @@ mod test {
306306 let test_path = temp_dir. path ( ) ;
307307 let plugin = MavenPlugin :: new ( ) . unwrap ( ) ;
308308 let class_path = plugin. get_project_class_path ( test_path) . unwrap ( ) ;
309- println ! ( "{}" , class_path) ;
309+ log :: debug !( "{}" , class_path) ;
310310 let expected = format ! ( "{0}junit{0}" , std:: path:: MAIN_SEPARATOR ) ;
311311 assert ! ( class_path. contains( & expected) ) ;
312312 }
@@ -316,7 +316,7 @@ mod test {
316316 init ( ) ;
317317
318318 use std:: path:: PathBuf ;
319- println ! ( "{}" , PathBuf :: from( "." ) . canonicalize( ) . unwrap( ) . display( ) ) ;
319+ log :: debug !( "{}" , PathBuf :: from( "." ) . canonicalize( ) . unwrap( ) . display( ) ) ;
320320
321321 let temp_dir = copy_test_dir ( "tests/data/maven_exercise" ) ;
322322 let test_path = temp_dir. path ( ) ;
You can’t perform that action at this time.
0 commit comments