$29 GRAYBYTE WORDPRESS FILE MANAGER $58

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.23
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/ruby18/lib64/ruby/1.8/test/unit/

HOME
Current File : /opt/alt/ruby18/lib64/ruby/1.8/test/unit//collector.rb
module Test
  module Unit
    module Collector
      def initialize
        @filters = []
      end

      def filter=(filters)
        @filters = case(filters)
          when Proc
            [filters]
          when Array
            filters
        end
      end

      def add_suite(destination, suite)
        to_delete = suite.tests.find_all{|t| !include?(t)}
        to_delete.each{|t| suite.delete(t)}
        destination << suite unless(suite.size == 0)
      end

      def include?(test)
        return true if(@filters.empty?)
        @filters.each do |filter|
          result = filter[test]
          if(result.nil?)
            next
          elsif(!result)
            return false
          else
            return true
          end
        end
        true
      end

      def sort(suites)
        suites.sort_by{|s| s.name}
      end
    end
  end
end


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 10.48 PM
root / linksafe
0755
collector
--
3 Mar 2024 10.48 PM
root / linksafe
0755
ui
--
3 Mar 2024 10.48 PM
root / linksafe
0755
util
--
3 Mar 2024 10.48 PM
root / linksafe
0755
assertionfailederror.rb
0.29 KB
12 Feb 2007 11.01 PM
root / linksafe
0644
assertions.rb
17.8 KB
12 Feb 2007 11.01 PM
root / linksafe
0644
autorunner.rb
6.584 KB
25 Feb 2007 2.08 PM
root / linksafe
0644
collector.rb
0.853 KB
12 Feb 2007 11.01 PM
root / linksafe
0644
error.rb
1.4 KB
12 Feb 2007 11.01 PM
root / linksafe
0644
failure.rb
1.287 KB
12 Feb 2007 11.01 PM
root / linksafe
0644
testcase.rb
4.442 KB
12 Feb 2007 11.01 PM
root / linksafe
0644
testresult.rb
2.029 KB
12 Feb 2007 11.01 PM
root / linksafe
0644
testsuite.rb
1.911 KB
12 Feb 2007 11.01 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF