lib/cql/feature_filters.rb
require 'cql/filters'
module CQL
# Not a part of the public API. Subject to change at any time.
class TestCountFilter < TypeCountFilter
# Counts the numbers of tests of a certain type
def type_count(feature)
feature.tests.find_all { |test| types.include?(test.class) }.size
end
end
end