Class: CQL::TestCountFilter
- Inherits:
-
TypeCountFilter
- Object
- TypeCountFilter
- CQL::TestCountFilter
- Defined in:
- lib/cql/feature_filters.rb
Overview
Not a part of the public API. Subject to change at any time.
Instance Attribute Summary
Attributes inherited from TypeCountFilter
Instance Method Summary collapse
-
#type_count(feature) ⇒ Object
Counts the numbers of tests of a certain type.
Methods inherited from TypeCountFilter
Constructor Details
This class inherits a constructor from CQL::TypeCountFilter
Instance Method Details
#type_count(feature) ⇒ Object
Counts the numbers of tests of a certain type
10 11 12 |
# File 'lib/cql/feature_filters.rb', line 10 def type_count(feature) feature.tests.find_all { |test| types.include?(test.class) }.size end |