mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/coverage/test_coverage.rb: Added test-case for Coverage.peek_result
without Coverage.start. [Misc #11726][ruby-core:71622] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
717e60c79c
commit
a4ac506551
2 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Thu Nov 26 09:46:36 2015 yui-knk <spiketeika@gmail.com>
|
||||||
|
|
||||||
|
* 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@80x24.org>
|
Thu Nov 26 07:22:55 2015 Eric Wong <e@80x24.org>
|
||||||
|
|
||||||
* test/openssl/test_ssl.rb (test_copy_stream): new test
|
* test/openssl/test_ssl.rb (test_copy_stream): new test
|
||||||
|
|
|
@ -6,6 +6,11 @@ class TestCoverage < Test::Unit::TestCase
|
||||||
def test_result_without_start
|
def test_result_without_start
|
||||||
assert_raise(RuntimeError) {Coverage.result}
|
assert_raise(RuntimeError) {Coverage.result}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_peek_result_without_start
|
||||||
|
assert_raise(RuntimeError) {Coverage.peek_result}
|
||||||
|
end
|
||||||
|
|
||||||
def test_result_with_nothing
|
def test_result_with_nothing
|
||||||
Coverage.start
|
Coverage.start
|
||||||
result = Coverage.result
|
result = Coverage.result
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue