Module: Evilution::MCP::InfoTool::ConfigFactory Private

Defined in:
lib/evilution/mcp/info_tool/config_factory.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

.subjects(files:, line_ranges:, target:, integration:, skip_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.



9
10
11
12
13
14
15
# File 'lib/evilution/mcp/info_tool/config_factory.rb', line 9

def subjects(files:, line_ranges:, target:, integration:, skip_config:)
  opts = { target_files: files, line_ranges: line_ranges || {} }
  opts[:skip_config_file] = true if skip_config
  opts[:target] = target if target
  opts[:integration] = integration if integration
  Evilution::Config.new(**opts)
end

.tests(files:, spec:, integration:, skip_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.



17
18
19
20
21
22
23
# File 'lib/evilution/mcp/info_tool/config_factory.rb', line 17

def tests(files:, spec:, integration:, skip_config:)
  opts = { target_files: files }
  opts[:skip_config_file] = true if skip_config
  opts[:spec_files] = spec if spec
  opts[:integration] = integration if integration
  Evilution::Config.new(**opts)
end