Sha256: fbf60a3038ad0750476b4a7490eed862b02395c0d8dcfdf6dbce9158f61548ae

Contents?: true

Size: 811 Bytes

Versions: 179

Compression:

Stored size: 811 Bytes

Contents

# Author:: Nathaniel Talbott.
# Copyright:: Copyright (c) 2000-2003 Nathaniel Talbott. All rights reserved.
# License:: Ruby license.

require 'test/unit/collector'

module Test
  module Unit
    module Collector
      class ObjectSpace
        include Collector
        
        NAME = 'collected from the ObjectSpace'
        
        def initialize(source=::ObjectSpace)
          super()
          @source = source
        end
        
        def collect(name=NAME)
          suite = TestSuite.new(name)
          sub_suites = []
          @source.each_object(Class) do |klass|
            if(Test::Unit::TestCase > klass)
              add_suite(sub_suites, klass.suite)
            end
          end
          sort(sub_suites).each{|s| suite << s}
          suite
        end
      end
    end
  end
end

Version data entries

179 entries across 163 versions & 17 rubygems

Version Path
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/test-unit-2.4.8/lib/test/unit/collector/objectspace.rb
rubysl-test-unit-1.0.1 lib/test/unit/collector/objectspace.rb
rubysl-test-unit-1.0.0 lib/test/unit/collector/objectspace.rb
candlepin-api-0.4.0 bundle/ruby/gems/test-unit-2.5.0/lib/test/unit/collector/objectspace.rb
candlepin-api-0.4.0 bundle/ruby/1.8/gems/test-unit-2.5.0/lib/test/unit/collector/objectspace.rb
candlepin-api-0.4.0 bundle/ruby/1.9.1/gems/test-unit-2.5.0/lib/test/unit/collector/objectspace.rb
test-unit-2.5.5 lib/test/unit/collector/objectspace.rb
test-unit-2.5.4 lib/test/unit/collector/objectspace.rb
ruby_on_ruby-0.0.1 vendor/javascripts/emscripted-ruby/lib/test/unit/collector/objectspace.rb
rhodes-3.5.1.12 spec/framework_spec/extensions/test-libs/test/unit/collector/objectspace.rb
test-unit-2.5.3 lib/test/unit/collector/objectspace.rb
bitclust-core-0.5.3 vendor/bundle/ruby/1.9.1/gems/bitclust-core-0.5.3/vendor/bundle/ruby/1.9.1/gems/test-unit-2.5.1/lib/test/unit/collector/objectspace.rb
bitclust-core-0.5.3 vendor/bundle/ruby/1.9.1/gems/bitclust-core-0.5.3/vendor/bundle/ruby/1.9.1/gems/bitclust-core-0.5.1/vendor/bundle/ruby/1.9.1/gems/test-unit-2.4.8/lib/test/unit/collector/objectspace.rb
bitclust-core-0.5.3 vendor/bundle/ruby/1.9.1/gems/bitclust-core-0.5.3/vendor/bundle/ruby/1.9.1/gems/test-unit-2.4.8/lib/test/unit/collector/objectspace.rb
bitclust-core-0.5.3 vendor/bundle/ruby/1.9.1/gems/bitclust-core-0.5.1/vendor/bundle/ruby/1.9.1/gems/test-unit-2.5.1/lib/test/unit/collector/objectspace.rb
bitclust-core-0.5.3 vendor/bundle/ruby/1.9.1/gems/test-unit-2.5.1/lib/test/unit/collector/objectspace.rb
bitclust-core-0.5.3 vendor/bundle/ruby/1.9.1/gems/test-unit-2.4.8/lib/test/unit/collector/objectspace.rb
bitclust-core-0.5.3 vendor/bundle/ruby/1.9.1/gems/bitclust-core-0.5.3/vendor/bundle/ruby/1.9.1/gems/bitclust-core-0.5.1/vendor/bundle/ruby/1.9.1/gems/test-unit-2.5.1/lib/test/unit/collector/objectspace.rb
bitclust-core-0.5.3 vendor/bundle/ruby/1.9.1/gems/bitclust-core-0.5.1/vendor/bundle/ruby/1.9.1/gems/test-unit-2.4.8/lib/test/unit/collector/objectspace.rb
rhodes-3.3.5 spec/framework_spec/extensions/test-libs/test/unit/collector/objectspace.rb