Class: HotCell::Fixtures::Greedy

Inherits:
Operation show all
Defined in:
lib/hot_cell/test_operations.rb

Constant Summary

Constants inherited from Operation

Operation::READ_BYTES

Instance Method Summary collapse

Methods inherited from Operation

abstract_operation, abstract_operation?, before_fork, before_worker_boot, inherited, limits, operation, operation_name, #run_tool, unreadable

Instance Method Details

#perform(_inputs, _outputs, megabytes:) ⇒ Object



365
366
367
# File 'lib/hot_cell/test_operations.rb', line 365

def perform(_inputs, _outputs, megabytes:)
  { bytes: ("x" * (megabytes * 1024 * 1024)).bytesize }
end