Method: SimpleCov::Result.from_hash
- Defined in:
- lib/simplecov/result.rb
.from_hash(hash) ⇒ Object
Loads a SimpleCov::Result#to_hash dump
76 77 78 79 80 |
# File 'lib/simplecov/result.rb', line 76 def self.from_hash(hash) hash.map do |command_name, data| new(data.fetch("coverage"), command_name: command_name, created_at: Time.at(data["timestamp"])) end end |