Sha256: ca541db41bab69a8c396e2552c4620d3b218051a4862f9cd921253f6de976de7
Contents?: true
Size: 1.16 KB
Versions: 68
Compression:
Stored size: 1.16 KB
Contents
# frozen_string_literal: true module Mutant class Reporter class CLI class Printer # Reporter for progressive output format on scheduler Status objects class StatusProgressive < self FORMAT = 'progress: %02d/%02d alive: %d runtime: %0.02fs killtime: %0.02fs mutations/s: %0.02f' delegate( :amount_mutation_results, :amount_mutations, :amount_mutations_alive, :amount_mutations_killed, :killtime, :overhead, :runtime ) # Run printer # # @return [undefined] def run status( FORMAT, amount_mutation_results, amount_mutations, amount_mutations_alive, runtime, killtime, mutations_per_second ) end private def object super().payload end def mutations_per_second amount_mutation_results / runtime end end # StatusProgressive end # Printer end # CLI end # Reporter end # Mutant
Version data entries
68 entries across 68 versions & 1 rubygems