Class: HotCell::Fixtures::Overflowing
- Defined in:
- lib/hot_cell/test_operations.rb
Constant Summary
Constants inherited from Operation
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
207 208 209 210 211 212 213 214 |
# File 'lib/hot_cell/test_operations.rb', line 207 def perform(_inputs, outputs, megabytes:) File.open(outputs.first.path, "wb") do |file| megabytes.times { file.write "x" * (1024 * 1024) } file.flush end {} end |