@@ -9,7 +9,6 @@ use std::io::{BufReader, Cursor, Read, Seek};
99use std:: path:: { Path , PathBuf } ;
1010use std:: time:: Duration ;
1111use tmc_langs_framework:: {
12- anyhow,
1312 command:: TmcCommand ,
1413 domain:: {
1514 ExerciseDesc , RunResult , RunStatus , StyleValidationResult , StyleValidationStrategy ,
@@ -207,12 +206,7 @@ impl LanguagePlugin for CSharpPlugin {
207206 }
208207
209208 /// Runs --generate-points-file and parses the generated .tmc_available_points.json.
210- fn scan_exercise (
211- & self ,
212- path : & Path ,
213- exercise_name : String ,
214- _warnings : & mut Vec < anyhow:: Error > ,
215- ) -> Result < ExerciseDesc , TmcError > {
209+ fn scan_exercise ( & self , path : & Path , exercise_name : String ) -> Result < ExerciseDesc , TmcError > {
216210 // clean old points file
217211 let exercise_desc_json_path = path. join ( ".tmc_available_points.json" ) ;
218212 if exercise_desc_json_path. exists ( ) {
@@ -251,7 +245,6 @@ impl LanguagePlugin for CSharpPlugin {
251245 & self ,
252246 path : & Path ,
253247 timeout : Option < Duration > ,
254- _warnings : & mut Vec < anyhow:: Error > ,
255248 ) -> Result < RunResult , TmcError > {
256249 // clean old file
257250 let test_results_path = path. join ( ".tmc_test_results.json" ) ;
@@ -595,7 +588,7 @@ mod test {
595588 let temp = dir_to_temp ( "tests/data/passing-exercise" ) ;
596589 let plugin = CSharpPlugin :: new ( ) ;
597590 let scan = plugin
598- . scan_exercise ( temp. path ( ) , "name" . to_string ( ) , & mut vec ! [ ] )
591+ . scan_exercise ( temp. path ( ) , "name" . to_string ( ) )
599592 . unwrap ( ) ;
600593 assert_eq ! ( scan. name, "name" ) ;
601594 assert_eq ! ( scan. tests. len( ) , 2 ) ;
@@ -607,7 +600,7 @@ mod test {
607600
608601 let temp = dir_to_temp ( "tests/data/passing-exercise" ) ;
609602 let plugin = CSharpPlugin :: new ( ) ;
610- let res = plugin. run_tests ( temp. path ( ) , & mut vec ! [ ] ) . unwrap ( ) ;
603+ let res = plugin. run_tests ( temp. path ( ) ) . unwrap ( ) ;
611604 assert_eq ! ( res. status, RunStatus :: Passed ) ;
612605 assert_eq ! ( res. test_results. len( ) , 2 ) ;
613606 for tr in res. test_results {
@@ -623,7 +616,7 @@ mod test {
623616
624617 let temp = dir_to_temp ( "tests/data/failing-exercise" ) ;
625618 let plugin = CSharpPlugin :: new ( ) ;
626- let res = plugin. run_tests ( temp. path ( ) , & mut vec ! [ ] ) . unwrap ( ) ;
619+ let res = plugin. run_tests ( temp. path ( ) ) . unwrap ( ) ;
627620 assert_eq ! ( res. status, RunStatus :: TestsFailed ) ;
628621 assert_eq ! ( res. test_results. len( ) , 1 ) ;
629622 let test_result = & res. test_results [ 0 ] ;
@@ -641,7 +634,7 @@ mod test {
641634
642635 let temp = dir_to_temp ( "tests/data/non-compiling-exercise" ) ;
643636 let plugin = CSharpPlugin :: new ( ) ;
644- let res = plugin. run_tests ( temp. path ( ) , & mut vec ! [ ] ) . unwrap ( ) ;
637+ let res = plugin. run_tests ( temp. path ( ) ) . unwrap ( ) ;
645638 assert_eq ! ( res. status, RunStatus :: CompileFailed ) ;
646639 assert ! ( !res. logs. is_empty( ) ) ;
647640 log:: debug!( "{:?}" , res. logs. get( "stdout" ) ) ;
@@ -659,11 +652,7 @@ mod test {
659652 let temp = dir_to_temp ( "tests/data/passing-exercise" ) ;
660653 let plugin = CSharpPlugin :: new ( ) ;
661654 let res = plugin
662- . run_tests_with_timeout (
663- temp. path ( ) ,
664- Some ( std:: time:: Duration :: from_nanos ( 1 ) ) ,
665- & mut vec ! [ ] ,
666- )
655+ . run_tests_with_timeout ( temp. path ( ) , Some ( std:: time:: Duration :: from_nanos ( 1 ) ) )
667656 . unwrap ( ) ;
668657 assert_eq ! ( res. status, RunStatus :: TestsFailed ) ;
669658 }
@@ -682,7 +671,7 @@ mod test {
682671 . join ( "obj" ) ;
683672 assert ! ( !bin_path. exists( ) ) ;
684673 assert ! ( !obj_path_test. exists( ) ) ;
685- plugin. run_tests ( temp. path ( ) , & mut vec ! [ ] ) . unwrap ( ) ;
674+ plugin. run_tests ( temp. path ( ) ) . unwrap ( ) ;
686675 assert ! ( bin_path. exists( ) ) ;
687676 assert ! ( obj_path_test. exists( ) ) ;
688677 plugin. clean ( temp. path ( ) ) . unwrap ( ) ;
@@ -709,7 +698,7 @@ mod test {
709698
710699 let temp = dir_to_temp ( "tests/data/partially-passing" ) ;
711700 let plugin = CSharpPlugin :: new ( ) ;
712- let results = plugin. run_tests ( temp. path ( ) , & mut vec ! [ ] ) . unwrap ( ) ;
701+ let results = plugin. run_tests ( temp. path ( ) ) . unwrap ( ) ;
713702 assert_eq ! ( results. status, RunStatus :: TestsFailed ) ;
714703 let mut got_point = false ;
715704 for test in results. test_results {
0 commit comments