ruby-changes:49010
From: mame <ko1@a...>
Date: Tue, 12 Dec 2017 09:21:02 +0900 (JST)
Subject: [ruby-changes:49010] mame:r61129 (trunk): ext/coverage/coverage.c: remove COVERAGE_EXPERIMENTAL_MODE
mame 2017-12-12 09:20:58 +0900 (Tue, 12 Dec 2017) New Revision: 61129 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61129 Log: ext/coverage/coverage.c: remove COVERAGE_EXPERIMENTAL_MODE A NEWS entry is also added. Modified files: trunk/NEWS trunk/ext/coverage/coverage.c trunk/test/coverage/test_coverage.rb trunk/tool/test-coverage.rb Index: ext/coverage/coverage.c =================================================================== --- ext/coverage/coverage.c (revision 61128) +++ ext/coverage/coverage.c (revision 61129) @@ -25,15 +25,8 @@ static VALUE https://github.com/ruby/ruby/blob/trunk/ext/coverage/coverage.c#L25 rb_coverage_start(int argc, VALUE *argv, VALUE klass) { VALUE coverages, opt; - int mode, experimental_mode_enabled = 1; + int mode; - { - const char *e = getenv("COVERAGE_EXPERIMENTAL_MODE"); - if (!e || !*e) experimental_mode_enabled = 0; - } - - if (!experimental_mode_enabled && argc != 0) - rb_error_arity(argc, 0, 0); rb_scan_args(argc, argv, "01", &opt); if (argc == 0) { Index: NEWS =================================================================== --- NEWS (revision 61128) +++ NEWS (revision 61129) @@ -152,6 +152,9 @@ with all sufficient information, see the https://github.com/ruby/ruby/blob/trunk/NEWS#L152 * Add Bundler to Standard Library. [Feature #12733] +* Coverage + * Support branch coverage and method coverage [Feature #13901] + * DRb * ACL::ACLEntry.new no longer suppresses IPAddr::InvalidPrefixError. Index: tool/test-coverage.rb =================================================================== --- tool/test-coverage.rb (revision 61128) +++ tool/test-coverage.rb (revision 61129) @@ -1,6 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/tool/test-coverage.rb#L1 require "coverage" -ENV["COVERAGE_EXPERIMENTAL_MODE"] = "true" Coverage.start(lines: true, branches: true, methods: true) TEST_COVERAGE_DATA_FILE = "test-coverage.dat" Index: test/coverage/test_coverage.rb =================================================================== --- test/coverage/test_coverage.rb (revision 61128) +++ test/coverage/test_coverage.rb (revision 61129) @@ -184,7 +184,6 @@ class TestCoverage < Test::Unit::TestCas https://github.com/ruby/ruby/blob/trunk/test/coverage/test_coverage.rb#L184 File.write("test.rb", code) assert_in_out_err(%w[-W0 -rcoverage], <<-"end;", stdout, []) - ENV["COVERAGE_EXPERIMENTAL_MODE"] = "true" Coverage.start(#{ opt }) tmp = Dir.pwd require tmp + '/test.rb' -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/