Class: RSpec::Hermetic::Evaluation

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec/hermetic/evaluation.rb,
sig/rspec/hermetic.rbs

Defined Under Namespace

Classes: Example

Instance Method Summary collapse

Constructor Details

#initialize(output_path: "tmp/rspec_hermetic_evaluation.json") ⇒ Evaluation

Returns a new instance of Evaluation.

Parameters:

  • output_path: (String) (defaults to: "tmp/rspec_hermetic_evaluation.json")


30
31
32
# File 'lib/rspec/hermetic/evaluation.rb', line 30

def initialize(output_path: "tmp/rspec_hermetic_evaluation.json")
  @output_path = output_path
end

Instance Method Details

#runHash[String, untyped]

Returns:

  • (Hash[String, untyped])


34
35
36
37
38
39
40
41
# File 'lib/rspec/hermetic/evaluation.rb', line 34

def run
  report = {
    "seeded_pollution" => seeded_pollution_results,
    "generated_at" => Time.now.utc.iso8601
  }
  write(report)
  report
end