Sha256: b76b31f3d5e828b4461fde4f789254417b8d5e44e418af6b7a74434e445123a7

Contents?: true

Size: 824 Bytes

Versions: 37

Compression:

Stored size: 824 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}
          adjust_ractor_tests(suite)
          suite
        end
      end
    end
  end
end

Version data entries

37 entries across 37 versions & 9 rubygems

Version Path
es_cli-0.1.0 vendor/bundle/ruby/3.1.0/gems/test-unit-3.6.7/lib/test/unit/collector/objectspace.rb
test-unit-3.6.7 lib/test/unit/collector/objectspace.rb
test-unit-3.6.6 lib/test/unit/collector/objectspace.rb
test-unit-3.6.5 lib/test/unit/collector/objectspace.rb
test-unit-3.6.4 lib/test/unit/collector/objectspace.rb
test-unit-3.6.3 lib/test/unit/collector/objectspace.rb
fluent-plugin-nuopenlineage-light-0.1.0 vendor/bundle/ruby/3.3.0/gems/test-unit-3.6.2/lib/test/unit/collector/objectspace.rb
fluent-plugin-openlineage-light-0.1.4 vendor/bundle/ruby/3.3.0/gems/test-unit-3.6.2/lib/test/unit/collector/objectspace.rb
fluent-plugin-openlineage-light-0.1.3 vendor/bundle/ruby/3.3.0/gems/test-unit-3.6.2/lib/test/unit/collector/objectspace.rb
fluent-plugin-openlineage-0.1.0 vendor/bundle/ruby/3.3.0/gems/test-unit-3.6.2/lib/test/unit/collector/objectspace.rb
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/test-unit-3.6.2/lib/test/unit/collector/objectspace.rb
test-unit-3.6.2 lib/test/unit/collector/objectspace.rb
test-unit-3.6.1 lib/test/unit/collector/objectspace.rb
test-unit-3.6.0 lib/test/unit/collector/objectspace.rb
test-unit-3.5.9 lib/test/unit/collector/objectspace.rb
test-unit-3.5.8 lib/test/unit/collector/objectspace.rb
fluent-plugin-google-cloud-logging-on-prem-0.1.0 vendor/ruby/3.1.0/gems/test-unit-3.5.7/lib/test/unit/collector/objectspace.rb
test-unit-3.5.7 lib/test/unit/collector/objectspace.rb
test-unit-3.5.6 lib/test/unit/collector/objectspace.rb
tdiary-5.2.4 vendor/bundle/ruby/3.1.0/gems/test-unit-3.5.5/lib/test/unit/collector/objectspace.rb