[前][次][番号順一覧][スレッド一覧]

ruby-changes:40674

From: hsbt <ko1@a...>
Date: Thu, 26 Nov 2015 09:49:07 +0900 (JST)
Subject: [ruby-changes:40674] hsbt:r52753 (trunk): * test/coverage/test_coverage.rb: Added test-case for Coverage.peek_result

hsbt	2015-11-26 09:48:56 +0900 (Thu, 26 Nov 2015)

  New Revision: 52753

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52753

  Log:
    * test/coverage/test_coverage.rb: Added test-case for Coverage.peek_result
      without Coverage.start. [Misc #11726][ruby-core:71622]

  Modified files:
    trunk/ChangeLog
    trunk/test/coverage/test_coverage.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 52752)
+++ ChangeLog	(revision 52753)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Nov 26 09:46:36 2015  yui-knk  <spiketeika@g...>
+
+	* test/coverage/test_coverage.rb: Added test-case for Coverage.peek_result
+	  without Coverage.start. [Misc #11726][ruby-core:71622]
+
 Thu Nov 26 07:22:55 2015  Eric Wong  <e@8...>
 
 	* test/openssl/test_ssl.rb (test_copy_stream): new test
Index: test/coverage/test_coverage.rb
===================================================================
--- test/coverage/test_coverage.rb	(revision 52752)
+++ test/coverage/test_coverage.rb	(revision 52753)
@@ -6,6 +6,11 @@ class TestCoverage < Test::Unit::TestCas https://github.com/ruby/ruby/blob/trunk/test/coverage/test_coverage.rb#L6
   def test_result_without_start
     assert_raise(RuntimeError) {Coverage.result}
   end
+
+  def test_peek_result_without_start
+    assert_raise(RuntimeError) {Coverage.peek_result}
+  end
+
   def test_result_with_nothing
     Coverage.start
     result = Coverage.result

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]