Module: Evilution::MCP::MutateTool::SurvivedEnricher Private

Defined in:
lib/evilution/mcp/mutate_tool/survived_enricher.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Class Method Summary collapse

Class Method Details

.call(data, survived_results, config) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/evilution/mcp/mutate_tool/survived_enricher.rb', line 8

def self.call(data, survived_results, config)
  entries = data["survived"]
  return unless entries.is_a?(Array)

  explicit_spec, resolver = build_resolver(config)
  cache = {}

  entries.each_with_index do |entry, index|
    result = survived_results[index]
    next unless result

    enrich_entry(entry, result.mutation, explicit_spec, resolver, cache)
  end
end