Class: ActiveMutator::WorkItem

Inherits:
Data
  • Object
show all
Defined in:
lib/active_mutator/work_item.rb

Overview

lane: :parallel (default pool) | :serial (browser-covered, one at a time) timeout: static total budget (variable + fixed), kept for --debug-plan and compat variable: the baseline-estimate-derived part (estimate * timeout_factor) — the only part the TimeoutCalibrator scales

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(mutation:, example_ids:, timeout:, lane:, variable: 0.0) ⇒ WorkItem

Returns a new instance of WorkItem.



7
8
9
# File 'lib/active_mutator/work_item.rb', line 7

def initialize(mutation:, example_ids:, timeout:, lane:, variable: 0.0)
  super
end

Instance Attribute Details

#example_idsObject (readonly)

Returns the value of attribute example_ids

Returns:

  • (Object)

    the current value of example_ids



6
7
8
# File 'lib/active_mutator/work_item.rb', line 6

def example_ids
  @example_ids
end

#laneObject (readonly)

Returns the value of attribute lane

Returns:

  • (Object)

    the current value of lane



6
7
8
# File 'lib/active_mutator/work_item.rb', line 6

def lane
  @lane
end

#mutationObject (readonly)

Returns the value of attribute mutation

Returns:

  • (Object)

    the current value of mutation



6
7
8
# File 'lib/active_mutator/work_item.rb', line 6

def mutation
  @mutation
end

#timeoutObject (readonly)

Returns the value of attribute timeout

Returns:

  • (Object)

    the current value of timeout



6
7
8
# File 'lib/active_mutator/work_item.rb', line 6

def timeout
  @timeout
end

#variableObject (readonly)

Returns the value of attribute variable

Returns:

  • (Object)

    the current value of variable



6
7
8
# File 'lib/active_mutator/work_item.rb', line 6

def variable
  @variable
end