Class: CQL::TestCountFilter

Inherits:
TypeCountFilter show all
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

#comparison, #types

Instance Method Summary collapse

Methods inherited from TypeCountFilter

#execute, #initialize

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