class SimpleCov::SourceFile

def restore_ruby_data_structure(structure)


See #801

our data structures that we write so eval isn't _too_ bad.
We should probably do something different here, but as it stands these are

don't make their way back to us intact e.g. just as a string
Since we are dumping to and loading from JSON, and we have arrays as keys those
def restore_ruby_data_structure(structure)
  # Tests use the real data structures (except for integration tests) so no need to
  # put them through here.
  return structure if structure.is_a?(Array)
  # rubocop:disable Security/Eval
  eval structure
  # rubocop:enable Security/Eval
end