File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed
Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,10 @@ impl CargoTool {
3737}
3838
3939impl Tool for CargoTool {
40+ fn name ( & self ) -> & str {
41+ "cargo"
42+ }
43+
4044 fn find_root ( & self , path : & Utf8Path ) -> Result < Utf8PathBuf > {
4145 let cargo_toml_path = locate_cargo_toml ( path) ?;
4246 let root = cargo_toml_path
Original file line number Diff line number Diff line change @@ -63,7 +63,8 @@ pub fn test_unmutated_then_all_mutants(
6363 } ;
6464 if !baseline_outcome. success ( ) {
6565 error ! (
66- "cargo {} failed in an unmutated tree, so no mutants were tested" ,
66+ "{} {} failed in an unmutated tree, so no mutants were tested" ,
67+ tool. name( ) ,
6768 baseline_outcome. last_phase( ) ,
6869 ) ;
6970 // TODO: Maybe should be Err, but it would need to be an error that can map to the right
Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ use crate::Result;
2121use crate :: SourceFile ;
2222
2323pub trait Tool : Debug + Send + Sync {
24+ fn name ( & self ) -> & str ;
25+
2426 /// Find the root of the package enclosing a given path.
2527 ///
2628 /// The root is the enclosing directory that needs to be copied to make a self-contained
You can’t perform that action at this time.
0 commit comments