Sha256: dbd1f79768a0b15dd605e860d6ea153cd669a335c1245dd86c2bbebd137d57fc

Contents?: true

Size: 332 Bytes

Versions: 6

Compression:

Stored size: 332 Bytes

Contents

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cql-1.7.0 lib/cql/feature_filters.rb
cql-1.6.0 lib/cql/feature_filters.rb
cql-1.5.1 lib/cql/feature_filters.rb
cql-1.5.0 lib/cql/feature_filters.rb
cql-1.4.2 lib/cql/feature_filters.rb
cql-1.4.1 lib/cql/feature_filters.rb