Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 7 additions & 14 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,7 @@ pub fn consumer(
ItemType::Path((stem, gcno_path)) => {
// GCC
if let Err(e) = run_gcov(&gcno_path, branch_enabled, working_dir) {
error!("Error when running gcov: {}", e);
continue;
panic!("Error when running gcov: {}", e);
};
let gcov_ext = get_gcov_output_ext();
let gcov_path =
Expand Down Expand Up @@ -267,19 +266,16 @@ pub fn consumer(
}
}
ItemType::Content(_) => {
error!("Invalid content type");
continue;
panic!("Invalid content type");
}
ItemType::Paths(_) => {
error!("Invalid content type");
continue;
panic!("Invalid content type");
}
}
}
ItemFormat::Profraw => {
if binary_path.is_none() {
error!("The path to the compiled binary must be given as an argument when source-based coverage is used");
continue;
panic!("The path to the compiled binary must be given as an argument when source-based coverage is used");
}

if let ItemType::Paths(profraw_paths) = work_item.item {
Expand All @@ -301,13 +297,11 @@ pub fn consumer(
new_results
}
Err(e) => {
error!("Error while executing llvm tools: {}", e);
continue;
panic!("Error while executing llvm tools: {}", e);
}
}
} else {
error!("Invalid content type");
continue;
panic!("Invalid content type");
}
}
ItemFormat::Info | ItemFormat::JacocoXml => {
Expand All @@ -319,8 +313,7 @@ pub fn consumer(
try_parse!(parse_jacoco_xml_report(buffer), work_item.name)
}
} else {
error!("Invalid content type");
continue;
panic!("Invalid content type");
}
}
};
Expand Down