minitest.rb
UNKNOWN
Verdict: BENIGN
Local reference
Suspicious dependency
Inferred
| 16:7 |
… (class << self; self; end) |
|
| 17 |
|
|
| 18 |
## |
|
| 19 |
# Parallel test executor |
|
| 20 |
|
|
| 21 |
mc.send :attr_accessor, :parallel_executor |
Ruby dynamically invokes a method with send |
| 22 |
self.parallel_executor = Parallel::Executor.new((ENV['N'] || 2).to_i) |
|
| 23 |
|
|
| 24 |
## |
|
| 25 |
# Filter object for backtraces. |
|
| 26 |
|
|
| 27 |
mc.send :attr_accessor, :backtrace_filter |
|
| 28 |
|
|
| 29 |
## |
|
| 30 |
# Reporter object to be used for all runs. |
|
| 31 |
# |
|
| 32 |
# NOTE: This accessor is only available during setup, not during runs. |
|
| 33 |
|
|
| 34 |
mc.send :attr_accessor, :reporter |
|
| 44:3 |
…def self.autorun |
|
| 45 |
at_exit { |
|
| 46 |
next if $! and not ($!.kind_of? SystemExit and $!.success?) |
English function-word token "and" |
| 47 |
|
|
| 48 |
exit_code = nil |
|
| 49 |
|
|
| 50 |
at_exit { |
|
| 51 |
@@after_run.reverse_each(&:call) |
|
| 52 |
exit exit_code || false |
Terminates the Ruby process with exit |
| 53 |
} |
|
| 54 |
|
|
| 55 |
exit_code = Minitest.run ARGV |
|
| 56 |
} unless @@installed_at_exit |
|
| 57 |
@@installed_at_exit = true… |
|
| 91:15 |
…ensions << name |
|
| 92 |
end |
|
| 93 |
end |
|
| 94 |
|
|
| 95 |
## |
|
| 96 |
# This is the top-level run method. Everything starts from here. It |
English function-word token "the" |
| 97 |
# tells each Runnable sub-class to run,… |
|
| 144:60 |
… the parallel tests |
|
| 145 |
# could run in parallel with the serial tests. This would be bad because |
|
| 146 |
# the serial tests won't lock around Reporter#record. Run the serial tests |
|
| 147 |
# first, so that after they complete, the parallel tests will lock when |
|
| 148 |
# recording results. |
|
| 149 |
serial.map … |
|
| 735:27 |
…indows? |
|
| 736 |
|
|
| 737 |
def windows? platform = RUBY_PLATFORM |
|
| 738 |
/mswin|mingw/ =~ platform |
Checks for a Windows Ruby platform |
| 739 |
end |
|
| 740 |
end |
|
| 741 |
|
|
| 742 |
class BacktraceFilter # :nodoc: |
|
| 743 |
def filter bt |
|
| 744 |
return ["No backtrace"] unless bt |
|
| 745 |
|
|
| 746 |
… |
|
Micro-behaviors
| 16:7 |
… (class << self; self; end) |
|
| 17 |
|
|
| 18 |
## |
|
| 19 |
# Parallel test executor |
|
| 20 |
|
|
| 21 |
mc.send :attr_accessor, :parallel_executor |
|
| 22 |
self.parallel_executor = Parallel::Executor.new((ENV['N'] || 2).to_i) |
|
| 23 |
|
|
| 24 |
## |
|
| 25 |
# Filter object for backtraces. |
|
| 26 |
|
|
| 27 |
mc.send :attr_accessor, :backtrace_filter |
|
| 28 |
|
|
| 29 |
## |
|
| 30 |
# Reporter object to be used for all runs. |
|
| 31 |
# |
|
| 32 |
# NOTE: This accessor is only available during setup, not during runs. |
|
| 33 |
|
|
| 34 |
mc.send :attr_accessor, :reporter |
|
| 735:27 |
…indows? |
|
| 736 |
|
|
| 737 |
def windows? platform = RUBY_PLATFORM |
|
| 738 |
/mswin|mingw/ =~ platform |
|
| 739 |
end |
|
| 740 |
end |
|
| 741 |
|
|
| 742 |
class BacktraceFilter # :nodoc: |
|
| 743 |
def filter bt |
|
| 744 |
return ["No backtrace"] unless bt |
|
| 745 |
|
|
| 746 |
… |
|
| 44:3 |
…def self.autorun |
|
| 45 |
at_exit { |
|
| 46 |
next if $! and not ($!.kind_of? SystemExit and $!.success?) |
|
| 47 |
|
|
| 48 |
exit_code = nil |
|
| 49 |
|
|
| 50 |
at_exit { |
|
| 51 |
@@after_run.reverse_each(&:call) |
|
| 52 |
exit exit_code || false |
|
| 53 |
} |
|
| 54 |
|
|
| 55 |
exit_code = Minitest.run ARGV |
|
| 56 |
} unless @@installed_at_exit |
|
| 57 |
@@installed_at_exit = true… |
|
Metadata
| 91:15 |
…ensions << name |
|
| 92 |
end |
|
| 93 |
end |
|
| 94 |
|
|
| 95 |
## |
|
| 96 |
# This is the top-level run method. Everything starts from here. It |
|
| 97 |
# tells each Runnable sub-class to run,… |
|
| 144:60 |
… the parallel tests |
|
| 145 |
# could run in parallel with the serial tests. This would be bad because |
|
| 146 |
# the serial tests won't lock around Reporter#record. Run the serial tests |
|
| 147 |
# first, so that after they complete, the parallel tests will lock when |
|
| 148 |
# recording results. |
|
| 149 |
serial.map … |
|
| 44:3 |
…def self.autorun |
|
| 45 |
at_exit { |
|
| 46 |
next if $! and not ($!.kind_of? SystemExit and $!.success?) |
|
| 47 |
|
|
| 48 |
exit_code = nil |
|
| 49 |
|
|
| 50 |
at_exit { |
|
| 51 |
@@after_run.reverse_each(&:call) |
|
| 52 |
exit exit_code || false |
|
| 53 |
} |
|
| 54 |
|
|
| 55 |
exit_code = Minitest.run ARGV |
|
| 56 |
} unless @@installed_at_exit |
|
| 57 |
@@installed_at_exit = true… |
|
| 571:20 |
…nodoc: |
|
| 572 |
extra = "" |
|
| 573 |
|
|
| 574 |
extra = "\n\nYou have skipped tests. Run with --verbose for details." if |
|
| 575 |
results.any?(&:skipped?) unless opti… |
|
| 16:7 |
… (class << self; self; end) |
|
| 17 |
|
|
| 18 |
## |
|
| 19 |
# Parallel test executor |
|
| 20 |
|
|
| 21 |
mc.send :attr_accessor, :parallel_executor |
|
| 22 |
self.parallel_executor = Parallel::Executor.new((ENV['N'] || 2).to_i) |
|
| 23 |
|
|
| 24 |
## |
|
| 25 |
# Filter object for backtraces. |
|
| 26 |
|
|
| 27 |
mc.send :attr_accessor, :backtrace_filter |
|
| 28 |
|
|
| 29 |
## |
|
| 30 |
# Reporter object to be used for all runs. |
|
| 31 |
# |
|
| 32 |
# NOTE: This accessor is only available during setup, not during runs. |
|
| 33 |
|
|
| 34 |
mc.send :attr_accessor, :reporter |
|
Identity
| SHA-256 |
239e3fabd376079c309aa8424bede647c61423e563fd40e70990ef21c52453ee |
| Filename |
minitest.rb |
Timeline
| First seen |
24 Apr 2026 16:15 UTC |
| First analyzed |
21 Aug 2026 08:53 UTC |
| Last analyzed |
24 Aug 2026 04:58 UTC |
| Last updated |
24 Aug 2026 05:00 UTC |
Labeling
| Label |
good |
| Label source |
harvest |
| Traits version |
f6eaa |