Sha256: 202d6c947916c9b81cd8b63c3bf9525fa2ca528aa576792ec28680916409e47a

Contents?: true

Size: 827 Bytes

Versions: 106

Compression:

Stored size: 827 Bytes

Contents

module OrigenTesters
  module IGXLBasedTester
    class Base
      class Patsets
        include ::OrigenTesters::Generator

        OUTPUT_POSTFIX = 'patsets'

        def add(name, options = {})
          p = platform::Patset.new(name, options)
          collection << p
          p
        end

        def finalize(options = {})
          uniq!
          sort!
        end

        # Present the patsets in the final sheet in alphabetical order
        def sort!
          collection.sort_by!(&:name)
        end

        # Removes all duplicate patsets
        def uniq!
          uniques = []
          collection.each do |patset|
            unless uniques.any? { |p| p == patset }
              uniques << patset
            end
          end
          self.collection = uniques
        end
      end
    end
  end
end

Version data entries

106 entries across 106 versions & 1 rubygems

Version Path
origen_testers-0.9.5 lib/origen_testers/igxl_based_tester/base/patsets.rb
origen_testers-0.9.4 lib/origen_testers/igxl_based_tester/base/patsets.rb
origen_testers-0.9.3 lib/origen_testers/igxl_based_tester/base/patsets.rb
origen_testers-0.9.2 lib/origen_testers/igxl_based_tester/base/patsets.rb
origen_testers-0.9.1 lib/origen_testers/igxl_based_tester/base/patsets.rb
origen_testers-0.9.0 lib/origen_testers/igxl_based_tester/base/patsets.rb
origen_testers-0.8.13 lib/origen_testers/igxl_based_tester/base/patsets.rb
origen_testers-0.8.11 lib/origen_testers/igxl_based_tester/base/patsets.rb
origen_testers-0.8.8 lib/origen_testers/igxl_based_tester/base/patsets.rb
origen_testers-0.8.7 lib/origen_testers/igxl_based_tester/base/patsets.rb
origen_testers-0.8.6 lib/origen_testers/igxl_based_tester/base/patsets.rb
origen_testers-0.8.5 lib/origen_testers/igxl_based_tester/base/patsets.rb
origen_testers-0.8.4 lib/origen_testers/igxl_based_tester/base/patsets.rb
origen_testers-0.8.3 lib/origen_testers/igxl_based_tester/base/patsets.rb
origen_testers-0.8.2 lib/origen_testers/igxl_based_tester/base/patsets.rb
origen_testers-0.8.1 lib/origen_testers/igxl_based_tester/base/patsets.rb
origen_testers-0.8.0 lib/origen_testers/igxl_based_tester/base/patsets.rb
origen_testers-0.8.0.pre1 lib/origen_testers/igxl_based_tester/base/patsets.rb
origen_testers-0.7.13 lib/origen_testers/igxl_based_tester/base/patsets.rb
origen_testers-0.7.12 lib/origen_testers/igxl_based_tester/base/patsets.rb