Sha256: 1afee408e27ca3bd47a70eb899c96796957ab65c94df08dd29220fcff98745cd
Contents?: true
Size: 614 Bytes
Versions: 40
Compression:
Stored size: 614 Bytes
Contents
# frozen_string_literal: true module Cucumber module Filters class TagLimits class TestCaseIndex def initialize @index = Hash.new { |hash, key| hash[key] = [] } end def add(test_case) test_case.tags.map(&:name).each do |tag_name| index[tag_name] << test_case end end def count_by_tag_name(tag_name) index[tag_name].count end def locations_of_tag_name(tag_name) index[tag_name].map(&:location) end private attr_accessor :index end end end end
Version data entries
40 entries across 40 versions & 4 rubygems