Rename helper struct BcbCounters
to MakeBcbCounters
This avoids confusion with data structures that actually hold BCB counter information.
This commit is contained in:
parent
49af618ef9
commit
c74db79c3b
1 changed files with 3 additions and 4 deletions
|
@ -45,8 +45,7 @@ impl CoverageCounters {
|
||||||
basic_coverage_blocks: &mut CoverageGraph,
|
basic_coverage_blocks: &mut CoverageGraph,
|
||||||
coverage_spans: &[CoverageSpan],
|
coverage_spans: &[CoverageSpan],
|
||||||
) -> Result<Vec<CoverageKind>, Error> {
|
) -> Result<Vec<CoverageKind>, Error> {
|
||||||
let mut bcb_counters = BcbCounters::new(self, basic_coverage_blocks);
|
MakeBcbCounters::new(self, basic_coverage_blocks).make_bcb_counters(coverage_spans)
|
||||||
bcb_counters.make_bcb_counters(coverage_spans)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn make_counter<F>(&mut self, debug_block_label_fn: F) -> CoverageKind
|
fn make_counter<F>(&mut self, debug_block_label_fn: F) -> CoverageKind
|
||||||
|
@ -112,12 +111,12 @@ impl CoverageCounters {
|
||||||
/// injected with `CoverageSpan`s. `Expressions` have no runtime overhead, so if a viable expression
|
/// injected with `CoverageSpan`s. `Expressions` have no runtime overhead, so if a viable expression
|
||||||
/// (adding or subtracting two other counters or expressions) can compute the same result as an
|
/// (adding or subtracting two other counters or expressions) can compute the same result as an
|
||||||
/// embedded counter, an `Expression` should be used.
|
/// embedded counter, an `Expression` should be used.
|
||||||
struct BcbCounters<'a> {
|
struct MakeBcbCounters<'a> {
|
||||||
coverage_counters: &'a mut CoverageCounters,
|
coverage_counters: &'a mut CoverageCounters,
|
||||||
basic_coverage_blocks: &'a mut CoverageGraph,
|
basic_coverage_blocks: &'a mut CoverageGraph,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> BcbCounters<'a> {
|
impl<'a> MakeBcbCounters<'a> {
|
||||||
fn new(
|
fn new(
|
||||||
coverage_counters: &'a mut CoverageCounters,
|
coverage_counters: &'a mut CoverageCounters,
|
||||||
basic_coverage_blocks: &'a mut CoverageGraph,
|
basic_coverage_blocks: &'a mut CoverageGraph,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue