Module: TestBench::Session::Controls::Events::TestStarted::Random

Extended by:
Telemetry::Controls::Event::EventData
Defined in:
lib/test_bench/session/controls/events/test_started.rb

Class Method Summary collapse

Class Method Details

.example(title: nil, process_id: nil, time: nil) ⇒ Object



40
41
42
43
44
45
46
# File 'lib/test_bench/session/controls/events/test_started.rb', line 40

def self.example(title: nil, process_id: nil, time: nil)
  process_id ||= ProcessID.random
  time ||= Time.random
  title ||= Title::Test.random

  TestStarted.example(title:, process_id:, time:)
end