Function
llvm_branches_to_internal
(llvm_branches: &Vec<CovBranch>)
Source from the content-addressed store, hash-verified
| 343 | } |
| 344 | |
| 345 | fn llvm_branches_to_internal(llvm_branches: &Vec<CovBranch>) -> Vec<BranchState> { |
| 346 | let mut func_branches = Vec::new(); |
| 347 | for llvm_branch in llvm_branches { |
| 348 | let (true_branch, false_branch) = BranchState::from_llvm_cov(llvm_branch); |
| 349 | func_branches.push(true_branch); |
| 350 | func_branches.push(false_branch); |
| 351 | } |
| 352 | func_branches |
| 353 | } |
| 354 | |
| 355 | #[cfg(test)] |
| 356 | mod tests { |
Tested by
no test coverage detected