Module: TestBench::Telemetry::Controls::Events::FileExited
- Defined in:
- lib/test_bench/telemetry/controls/events/file_exited.rb
Class Method Summary collapse
- .example(result: nil, path: nil, executor: nil, time: nil) ⇒ Object
- .executor ⇒ Object
- .path ⇒ Object
- .random ⇒ Object
- .result ⇒ Object
- .time ⇒ Object
Class Method Details
.example(result: nil, path: nil, executor: nil, time: nil) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/test_bench/telemetry/controls/events/file_exited.rb', line 6 def self.example(result: nil, path: nil, executor: nil, time: nil) result ||= self.result path ||= self.path executor ||= self.executor time ||= self.time TestBench::Telemetry::Event::FileExited.new(result, path, executor, time) end |
.executor ⇒ Object
26 |
# File 'lib/test_bench/telemetry/controls/events/file_exited.rb', line 26 def self.executor = 1 |
.path ⇒ Object
25 |
# File 'lib/test_bench/telemetry/controls/events/file_exited.rb', line 25 def self.path = Path.example |
.random ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/test_bench/telemetry/controls/events/file_exited.rb', line 15 def self.random result = Result.random path = Path.random executor = Random.integer % self.executor time = Time.random example(result:, path:, executor:, time:) end |