File: test-thread-run-context.rb

package info (click to toggle)
ruby-test-unit 3.7.7-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,348 kB
  • sloc: ruby: 16,403; makefile: 9
file content (23 lines) | stat: -rw-r--r-- 534 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#--
#
# Author:: Tsutomu Katsube.
# Copyright:: Copyright (c) 2025 Tsutomu Katsube. All rights reserved.
# License:: Ruby license.

require_relative "test-run-context"

module Test
  module Unit
    class TestThreadRunContext < TestRunContext
      attr_reader :queue
      attr_accessor :progress_block
      attr_accessor :parallel_unsafe_tests
      def initialize(runner_class, queue)
        super(runner_class)
        @queue = queue
        @progress_block = nil
        @parallel_unsafe_tests = []
      end
    end
  end
end