File: auto-runner-loader.rb

package info (click to toggle)
klayout 0.28.5-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 279,296 kB
  • sloc: cpp: 2,009,432; ruby: 43,292; xml: 25,855; python: 11,686; sh: 1,611; tcl: 212; perl: 170; makefile: 112; ansic: 42
file content (17 lines) | stat: -rw-r--r-- 379 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require "test/unit/test-suite-creator"

module Test
  module Unit
    module AutoRunnerLoader
      @loaded = false
      class << self
        def check(test_case, method_name)
          return if @loaded
          return unless TestSuiteCreator.test_method?(test_case, method_name)
          require "test/unit"
          @loaded = true
        end
      end
    end
  end
end