Sha256: 3ff17474031053c0c9c3b7fb061058b7ae7a84aff7304f663caffb471ff4a3df
Contents?: true
Size: 467 Bytes
Versions: 9
Compression:
Stored size: 467 Bytes
Contents
# frozen_string_literal: true require "json" module CrudeMutant class JsonResultPrinter class << self def call(result, stream = $stdout) stream.print( JSON.dump({ result.file_path => { passed_lines: result.run_results.select(&:success?).map(&:line_number), failed_lines: result.run_results.reject(&:success?).map(&:line_number), } }), ) end end end end
Version data entries
9 entries across 9 versions & 1 rubygems