Module: SimpleCov::StaticCoverageExtractor::LocationConventions

Included in:
Visitor
Defined in:
lib/simplecov/static_coverage_extractor/location_conventions.rb

Overview

The source ranges Ruby's Coverage assigns to branch conditions and arms, resolved from Prism nodes. Simulated entries only ever merge with real entries produced by the running Ruby, and CRuby 3.4 changed several of these conventions, so every resolver here emits whichever shape this Ruby's Coverage uses (#1226, #1233). The "runtime tuple equivalence" spec exercises the module against real Coverage output on every CI Ruby, and is the authority on what each resolver should answer.

Defined Under Namespace

Classes: PointLocation

Constant Summary collapse

LEGACY_COVERAGE_LOCATIONS =
Gem::Version.new(RUBY_VERSION) < Gem::Version.new("3.4")