Module rustc_mir_transform::coverage::counters

source ·


  • Generates and stores coverage counter and coverage expression information associated with nodes/edges in the BCB graph.
  • Traverse the CoverageGraph and add either a Counter or Expression to every BCB, to be injected with coverage spans. 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 embedded counter, an Expression should be used.