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. See issues #1226 / #1233.
rubocop:disable Metrics/ModuleLength -- one cohesive home for the per-construct, per-Ruby-version Coverage location conventions; splitting it would scatter closely-related resolvers.
Defined Under Namespace
Classes: PointLocation
Constant Summary collapse
- LEGACY_COVERAGE_LOCATIONS =
Gem::Version.new(RUBY_VERSION) < Gem::Version.new("3.4")