lib/fitting/report/combination.rb in fitting-3.0.2 vs lib/fitting/report/combination.rb in fitting-4.0.0
- old
+ new
@@ -3,21 +3,25 @@
class Combination
def initialize(json_schema:, type:, combination:)
@json_schema = json_schema
@type = type
@combination = combination
- @tests = Fitting::Report::Tests.new([])
@id = SecureRandom.hex
+ @cover = false
end
- attr_reader :json_schema, :id, :type, :tests
+ attr_reader :json_schema, :id, :type
- def name
- @combination
+ def cover?
+ @cover
end
- def add_test(test)
- @tests.push(test)
+ def cover!
+ @cover = true
+ end
+
+ def name
+ @combination
end
end
end
end