Module: Moult::Formatters::CoverageJson
- Defined in:
- lib/moult/formatters/coverage_json.rb
Overview
Emits the typed coverage-map JSON contract (schema/coverage.schema.json), straight from CoverageReport#to_h so the serialized shape cannot drift.
Class Method Summary collapse
-
.render(report) ⇒ String
Pretty-printed JSON.
Class Method Details
.render(report) ⇒ String
Returns pretty-printed JSON.
14 15 16 |
# File 'lib/moult/formatters/coverage_json.rb', line 14 def render(report) JSON.pretty_generate(report.to_h) end |