Module: Inferno::Utils::VerifyRunnable
- Included in:
- CLI::Execute, Web::Controllers::TestRuns::Create
- Defined in:
- lib/inferno/utils/verify_runnable.rb
Instance Method Summary collapse
Instance Method Details
#verify_runnable(runnable, inputs, selected_suite_options) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/inferno/utils/verify_runnable.rb', line 7 def verify_runnable(runnable, inputs, ) missing_inputs = runnable&.missing_inputs(inputs, ) user_runnable = runnable&.user_runnable? raise Inferno::Exceptions::RequiredInputsNotFound, missing_inputs if missing_inputs&.any? raise Inferno::Exceptions::NotUserRunnableException unless user_runnable end |