mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Specify frozen_string_literal: true.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b589c47806
commit
d5f86e836f
17 changed files with 21 additions and 21 deletions
|
@ -1,5 +1,5 @@
|
|||
# -*- coding: us-ascii -*-
|
||||
# frozen_string_literal: false
|
||||
# frozen_string_literal: true
|
||||
require "open3"
|
||||
require "timeout"
|
||||
require_relative "find_executable"
|
||||
|
@ -159,7 +159,7 @@ module EnvUtil
|
|||
end
|
||||
|
||||
def verbose_warning
|
||||
class << (stderr = "")
|
||||
class << (stderr = "".dup)
|
||||
alias write <<
|
||||
end
|
||||
stderr, $stderr, verbose, $VERBOSE = $stderr, stderr, $VERBOSE, true
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
# frozen_string_literal: true
|
||||
require "rbconfig"
|
||||
|
||||
module EnvUtil
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
# frozen_string_literal: true
|
||||
|
||||
begin
|
||||
require '-test-/iseq_load/iseq_load'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
# frozen_string_literal: true
|
||||
class LeakChecker
|
||||
def initialize
|
||||
@fd_info = find_fds
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
# frozen_string_literal: true
|
||||
begin
|
||||
require '-test-/memory_status.so'
|
||||
rescue LoadError
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# encoding: utf-8
|
||||
# frozen_string_literal: false
|
||||
# frozen_string_literal: true
|
||||
|
||||
begin
|
||||
require 'rubygems'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# encoding: utf-8
|
||||
# frozen_string_literal: false
|
||||
# frozen_string_literal: true
|
||||
|
||||
require 'minitest/unit'
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# encoding: utf-8
|
||||
# frozen_string_literal: false
|
||||
# frozen_string_literal: true
|
||||
|
||||
class MockExpectationError < StandardError; end # :nodoc:
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# encoding: utf-8
|
||||
# frozen_string_literal: false
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "optparse"
|
||||
require "rbconfig"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
# frozen_string_literal: true
|
||||
#
|
||||
# purpose:
|
||||
# Profile memory usage of each tests.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
# frozen_string_literal: true
|
||||
begin
|
||||
gem 'minitest', '< 5.0.0' if defined? Gem
|
||||
rescue Gem::LoadError
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
# frozen_string_literal: true
|
||||
require 'minitest/unit'
|
||||
require 'pp'
|
||||
|
||||
|
@ -452,7 +452,7 @@ EOT
|
|||
|
||||
ms = instance_methods(true).map {|sym| sym.to_s }
|
||||
ms.grep(/\Arefute_/) do |m|
|
||||
mname = ('assert_not_' << m.to_s[/.*?_(.*)/, 1])
|
||||
mname = ('assert_not_'.dup << m.to_s[/.*?_(.*)/, 1])
|
||||
alias_method(mname, m) unless ms.include? mname
|
||||
end
|
||||
alias assert_include assert_includes
|
||||
|
@ -543,7 +543,7 @@ EOT
|
|||
if status.coredump?
|
||||
sigdesc << " (core dumped)"
|
||||
end
|
||||
full_message = ''
|
||||
full_message = ''.dup
|
||||
message = message.call if Proc === message
|
||||
if message and !message.empty?
|
||||
full_message << message << "\n"
|
||||
|
@ -828,7 +828,7 @@ eom
|
|||
end
|
||||
result = File.__send__(predicate, *args)
|
||||
result = !result if neg
|
||||
mesg = "Expected file " << args.shift.inspect
|
||||
mesg = "Expected file ".dup << args.shift.inspect
|
||||
mesg << "#{neg} to be #{predicate}"
|
||||
mesg << mu_pp(args).sub(/\A\[(.*)\]\z/m, '(\1)') unless args.empty?
|
||||
mesg << " #{failure_message}" if failure_message
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
# frozen_string_literal: true
|
||||
$LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../.."
|
||||
require 'test/unit'
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
# frozen_string_literal: true
|
||||
require 'test/unit/assertions'
|
||||
|
||||
module Test
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
# frozen_string_literal: true
|
||||
module TracePointChecker
|
||||
STATE = {
|
||||
count: 0,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
# frozen_string_literal: true
|
||||
module DifferentOFS
|
||||
module WithDifferentOFS
|
||||
def setup
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
# frozen_string_literal: true
|
||||
module ZombieHunter
|
||||
def after_teardown
|
||||
super
|
||||
|
|
Loading…
Reference in a new issue