Class: Datadog::CI::TestOptimisation::SkippablePercentage::Base
- Inherits:
-
Object
- Object
- Datadog::CI::TestOptimisation::SkippablePercentage::Base
- Defined in:
- lib/datadog/ci/test_optimisation/skippable_percentage/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#failed ⇒ Object
readonly
Returns the value of attribute failed.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(verbose: false, spec_path: "spec") ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(verbose: false, spec_path: "spec") ⇒ Base
Returns a new instance of Base.
10 11 12 13 14 15 16 17 |
# File 'lib/datadog/ci/test_optimisation/skippable_percentage/base.rb', line 10 def initialize(verbose: false, spec_path: "spec") @verbose = verbose @spec_path = spec_path @failed = false log("Spec path: #{@spec_path}") error!("Spec path is not a directory: #{@spec_path}") if !File.directory?(@spec_path) end |
Instance Attribute Details
#failed ⇒ Object (readonly)
Returns the value of attribute failed.
8 9 10 |
# File 'lib/datadog/ci/test_optimisation/skippable_percentage/base.rb', line 8 def failed @failed end |
Instance Method Details
#call ⇒ Object
19 20 21 |
# File 'lib/datadog/ci/test_optimisation/skippable_percentage/base.rb', line 19 def call 0.0 end |