enkessler/cql

View on GitHub
lib/cql/feature_filters.rb

Summary

Maintainability
A
0 mins
Test Coverage
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