Skip to content

Instantly share code, notes, and snippets.

@siefca
Created March 23, 2009 13:45
Show Gist options
  • Save siefca/83550 to your computer and use it in GitHub Desktop.
Save siefca/83550 to your computer and use it in GitHub Desktop.
Finished in 1.648384 seconds.
1) Failure:
test_basic_defsite_recording(TestCallSiteAnalyzer) [./rcov/test/call_site_analyzer_test.rb:39]:
<"#<struct Rcov::CallSiteAnalyzer::DefSite file=\"./rcov/test/assets/sample_03.rb\", line=3>"> expected but was
<"#<struct Rcov::CallSiteAnalyzer::DefSite file=\"./rcov/test/assets/sample_03.rb\", line=4>">.
2) Failure:
test_differential_coverage_data(TestCodeCoverageAnalyzer) [./rcov/test/code_coverage_analyzer_test.rb:102]:
<[4, 1, 0, 0, 4]> expected but was
<[0, 4, 1, 0, 0]>.
3) Failure:
test_nested_analyzer_blocks(TestCodeCoverageAnalyzer) [./rcov/test/code_coverage_analyzer_test.rb:168]:
<[0, 442, 221, 0, 0]> expected but was
<[0, 0, 442, 221, 0]>.
4) Failure:
test_raw_coverage_info(TestCodeCoverageAnalyzer) [./rcov/test/code_coverage_analyzer_test.rb:49]:
<[true, true, false, false, true, false, true]> expected but was
<[false, true, true, false, false, true, false]>.
5) Failure:
test_reset(TestCodeCoverageAnalyzer) [./rcov/test/code_coverage_analyzer_test.rb:187]:
<[0, 100, 50, 0, 0]> expected but was
<[0, 0, 100, 50, 0]>.
6) Failure:
test_begin_end_comment_blocks(TestFileStatistics) [./rcov/test/file_statistics_test.rb:454]:
Test =begin/=end; line should have been marked: "0 =begin".
7) Failure:
test_begin_ensure_else_case_are_inferred(TestFileStatistics) [./rcov/test/file_statistics_test.rb:454]:
Test begin ensure else case; line should have been marked: "0 begin".
8) Failure:
test_code_metrics_are_computed_correctly(TestFileStatistics) [./rcov/test/file_statistics_test.rb:82]:
Expected 0.307 - 0.230769230769231 (0.0762307692307692) to be < 0.01.
9) Failure:
test_handle_multiline_blocks_first_not_marked(TestFileStatistics) [./rcov/test/file_statistics_test.rb:454]:
Test multiline block first not marked; line should have been marked: "0 end".
10) Failure:
test_handle_multiline_blocks_last_line_not_marked(TestFileStatistics) [./rcov/test/file_statistics_test.rb:454]:
Test multiline block last not marked; line should have been marked: "0 end.flatten!".
11) Failure:
test_handle_multiline_data_with_trailing_stuff_on_last_line(TestFileStatistics) [./rcov/test/file_statistics_test.rb:454]:
Test multiline data hash; line should have been marked: "0 }.merge(params[:review])) #red".
12) Failure:
test_handle_multiline_expression_1st_line_ends_in_block_header(TestFileStatistics) [./rcov/test/file_statistics_test.rb:454]:
Test multiline with block starting on 1st; line should have been marked: "0 ]".
13) Failure:
test_handle_multiline_expressions(TestFileStatistics) [./rcov/test/file_statistics_test.rb:454]:
Test escaped linebreaks; line should have been marked: "0 end".
14) Failure:
test_handle_multiline_expressions_with_heredocs(TestFileStatistics) [./rcov/test/file_statistics_test.rb:454]:
Test multiline and heredocs; line should have been marked: "0 one two three".
15) Failure:
test_handle_multiple_block_end_delimiters_in_empty_line(TestFileStatistics) [./rcov/test/file_statistics_test.rb:454]:
Test multiline with }) delimiter, forward; line should have been marked: "0 })".
16) Failure:
test_heredocs_basic(TestFileStatistics) [./rcov/test/file_statistics_test.rb:454]:
Test heredocs-basic.rb; line should have been marked: "0 first line of the heredoc".
17) Failure:
test_heredocs_multiple(TestFileStatistics) [./rcov/test/file_statistics_test.rb:454]:
Test multiple-unquoted; line should have been marked: "0 first line of the heredoc".
18) Failure:
test_heredocs_with_interpolation_alone_in_method(TestFileStatistics) [./rcov/test/file_statistics_test.rb:454]:
Test lonely heredocs with interpolation; line should have been marked: "0 <<-EOF".
19) Failure:
test_ignore_non_heredocs(TestFileStatistics) [./rcov/test/file_statistics_test.rb:454]:
Test bitshift-symbolic-multi; line should have been marked: "0 random text".
20) Failure:
test_is_code_p(TestFileStatistics) [./rcov/test/file_statistics_test.rb:443]:
Unable to detect =begin comments properly: "0 =begin".
<false> expected but was
<true>.
21) Failure:
test_last_comment_block_is_marked(TestFileStatistics) [./rcov/test/file_statistics_test.rb:454]:
Test last comment block; line should have been marked: "0 # foo".
22) Failure:
test_merge(TestFileStatistics) [./rcov/test/file_statistics_test.rb:114]:
<[true, true, true, :inferred, true, :inferred, :inferred, true]> expected but was
<[true, true, true, false, true, false, false, true]>.
23) Failure:
test_rescue_is_inferred(TestFileStatistics) [./rcov/test/file_statistics_test.rb:454]:
Test rescue; line should have been marked: "0 begin".
24) Failure:
test_trailing_end_is_inferred(TestFileStatistics) [./rcov/test/file_statistics_test.rb:454]:
Test trailing end; line should have been marked: "0 end".
25) Failure:
test_diff(TestFunctional) [./rcov/test/functional_test.rb:44]:
<"================================================================================\nassets/sample_05.rb\n================================================================================\nassets/sample_05.rb:10: 3*x\nassets/sample_05.rb:11:end\n"> expected but was
<"Ruby Version: 1.9.1\nTesting ARGV \n[\"assets/sample_05.rb\"]\nclass of Array\n[#<Rcov::FullTextReport:0x3e1930\n @callsite_analyzer=nil,\n @callsite_index=nil,\n @color=true,\n @comments_run_by_default=false,\n @dont_ignore_files=[/sample/],\n @files={},\n @ignore_files=\n [/\\A\\/usr\\/local\\/ruby19\\/lib/,\n /\\btc_[^.]*.rb/,\n /_test\\.rb\\z/,\n /\\btest\\//,\n /\\bvendor\\//,\n /\\A\\/Users\\/siefca\\/kody\\/ruby\\/rcov\\/lib\\/rcov\\/report\\.rb\\z/,\n /rcov/],\n @mangle_filename={},\n @output_threshold=101,\n @sort_criterium=\n #<Proc:0x3e1408@./rcov/lib/rcov/report.rb:101 (lambda)>,\n @sort_reverse=false,\n @textmode=:gcc>,\n #<Rcov::TextCoverageDiff:0x3e1160\n @callsite_analyzer=nil,\n @callsite_index=nil,\n @color=true,\n @comments_run_by_default=false,\n @diff_cmd=\"diff\",\n @dont_ignore_files=[/sample/],\n @files={},\n @gcc_output=true,\n @ignore_files=\n [/\\A\\/usr\\/local\\/ruby19\\/lib/,\n /\\btc_[^.]*.rb/,\n /_test\\.rb\\z/,\n /\\btest\\//,\n /\\bvendor\\//,\n /\\A\\/Users\\/siefca\\/kody\\/ruby\\/rcov\\/lib\\/rcov\\/report\\.rb\\z/,\n /rcov/],\n @mangle_filename={},\n @mode=:record,\n @output_threshold=101,\n @sort_criterium=\n #<Proc:0x3e0ea4@./rcov/lib/rcov/report.rb:101 (lambda)>,\n @sort_reverse=false,\n @state_file=\"coverage.info\",\n @textmode=:gcc>]\n================================================================================\nassets/sample_05.rb\n================================================================================\nassets/sample_05.rb:1:def a\nassets/sample_05.rb:2: b 10\nassets/sample_05.rb:3:end\nassets/sample_05.rb:4:\nassets/sample_05.rb:5:def b(x)\nassets/sample_05.rb:6: x*10\nassets/sample_05.rb:7:end\nassets/sample_05.rb:8:\nassets/sample_05.rb:9:def c(x)\nassets/sample_05.rb:10: 3*x\nassets/sample_05.rb:11:end\nassets/sample_05.rb:12:\nassets/sample_05.rb:13:a()\n[[\"assets/sample_05.rb\", #<Rcov::FileStatistics:0x799ab4 @name=\"assets/sample_05.rb\", @lines=[\"def a\\n\", \" b 10\\n\", \"end\\n\", \"\\n\", \"def b(x)\\n\", \" x*10\\n\", \"end\\n\", \"\\n\", \"def c(x)\\n\", \" 3*x\\n\", \"end\\n\", \"\\n\", \"a()\\n\"], @coverage=#<Rcov::CoverageInfo:0x799a8c @cover=[false, false, false, false, false, false, false, false, false, false, false, false, false]>, @counts=[0, 3, 1, 0, 0, 3, 1, 0, 0, 1, 0, 0, 0], @is_begin_comment=[false, false, false, false, false, false, false, false, false, false, false, false, false], @heredoc_start=[false, false, false, false, false, false, false, false, false, false, false, false, false], @multiline_string_start=[false, false, false, false, false, false, false, false, false, false, false, false, false]>]]\n">.
26) Failure:
test_text_gcc(TestFunctional) [./rcov/test/functional_test.rb:44]:
<"================================================================================\nassets/sample_03.rb\n================================================================================\nassets/sample_03.rb:15: 10.times{ g2 }\nassets/sample_03.rb:16: end\nassets/sample_03.rb:19: # safe from here ...\nassets/sample_03.rb:20:end end end end\n================================================================================\nassets/sample_04.rb\n================================================================================\n"> expected but was
<"Ruby Version: 1.9.1\nTesting ARGV \n[\"assets/sample_04.rb\"]\nclass of Array\n[#<Rcov::HTMLCoverage:0x3e2830\n @callsite_analyzer=nil,\n @callsite_index=nil,\n @charset=nil,\n @color=true,\n @comments_run_by_default=false,\n @dest=\"actual_coverage/ruby-1.9\",\n @do_callsites=false,\n @do_cross_references=false,\n @dont_ignore_files=[/sample/],\n @files={},\n @fsr=30.0,\n @ignore_files=\n [/\\A\\/usr\\/local\\/ruby19\\/lib/,\n /\\btc_[^.]*.rb/,\n /_test\\.rb\\z/,\n /\\btest\\//,\n /\\bvendor\\//,\n /\\A\\/Users\\/siefca\\/kody\\/ruby\\/rcov\\/lib\\/rcov\\/report\\.rb\\z/,\n /rcov/],\n @mangle_filename={},\n @output_threshold=101,\n @show_validator_links=true,\n @sort_criterium=\n #<Proc:0x3e254c@./rcov/lib/rcov/report.rb:101 (lambda)>,\n @sort_reverse=false,\n @span_class_index=0>,\n #<Rcov::FullTextReport:0x3e2394\n @callsite_analyzer=nil,\n @callsite_index=nil,\n @color=true,\n @comments_run_by_default=false,\n @dont_ignore_files=[/sample/],\n @files={},\n @ignore_files=\n [/\\A\\/usr\\/local\\/ruby19\\/lib/,\n /\\btc_[^.]*.rb/,\n /_test\\.rb\\z/,\n /\\btest\\//,\n /\\bvendor\\//,\n /\\A\\/Users\\/siefca\\/kody\\/ruby\\/rcov\\/lib\\/rcov\\/report\\.rb\\z/,\n /rcov/],\n @mangle_filename={},\n @output_threshold=101,\n @sort_criterium=\n #<Proc:0x3e227c@./rcov/lib/rcov/report.rb:101 (lambda)>,\n @sort_reverse=false,\n @textmode=:gcc>]\n================================================================================\nassets/sample_03.rb\n================================================================================\nassets/sample_03.rb:1:\nassets/sample_03.rb:2:module Rcov; module Test; module Temporary; class Sample03\nassets/sample_03.rb:3: def f1 # MUST NOT CHANGE the position or the tests will break\nassets/sample_03.rb:4: 10.times { f2 }\nassets/sample_03.rb:5: end\nassets/sample_03.rb:6:\nassets/sample_03.rb:7: def f2; 1 end\nassets/sample_03.rb:8:\nassets/sample_03.rb:9: def f3\nassets/sample_03.rb:10: 10.times{ f1 }\nassets/sample_03.rb:11: 100.times{ f2 }\nassets/sample_03.rb:12: end\nassets/sample_03.rb:13:\nassets/sample_03.rb:14: def self.g1\nassets/sample_03.rb:15: 10.times{ g2 }\nassets/sample_03.rb:16: end\nassets/sample_03.rb:17:\nassets/sample_03.rb:18: def self.g2; 1 end\nassets/sample_03.rb:19: # safe from here ...\nassets/sample_03.rb:20:end end end end\n================================================================================\nassets/sample_04.rb\n================================================================================\nassets/sample_04.rb:1:$: << File.dirname(__FILE__)\nassets/sample_04.rb:2:require 'sample_03'\nassets/sample_04.rb:3:\nassets/sample_04.rb:4:klass = Rcov::Test::Temporary::Sample03\nassets/sample_04.rb:5:obj = klass.new\nassets/sample_04.rb:6:obj.f1\nassets/sample_04.rb:7:obj.f2\nassets/sample_04.rb:8:obj.f3\nassets/sample_04.rb:9:#klass.g1 uncovered\nassets/sample_04.rb:10:klass.g2\n[[\"assets/sample_03.rb\", #<Rcov::FileStatistics:0x7a056c @name=\"assets/sample_03.rb\", @lines=[\"\\n\", \"module Rcov; module Test; module Temporary; class Sample03\\n\", \" def f1 # MUST NOT CHANGE the position or the tests will break\\n\", \" 10.times { f2 }\\n\", \" end\\n\", \"\\n\", \" def f2; 1 end\\n\", \"\\n\", \" def f3\\n\", \" 10.times{ f1 }\\n\", \" 100.times{ f2 }\\n\", \" end\\n\", \"\\n\", \" def self.g1\\n\", \" 10.times{ g2 }\\n\", \" end\\n\", \"\\n\", \" def self.g2; 1 end\\n\", \" # safe from here ...\\n\", \"end end end end\\n\"], @coverage=#<Rcov::CoverageInfo:0x7a0544 @cover=[false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false]>, @counts=[0, 0, 4, 23, 121, 0, 0, 634, 0, 3, 11, 101, 0, 0, 1, 0, 0, 0, 4, 0], @is_begin_comment=[false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false], @heredoc_start=[false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false], @multiline_string_start=[false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false]>], [\"assets/sample_04.rb\", #<Rcov::FileStatistics:0x797cf0 @name=\"assets/sample_04.rb\", @lines=[\"$: << File.dirname(__FILE__)\\n\", \"require 'sample_03'\\n\", \"\\n\", \"klass = Rcov::Test::Temporary::Sample03\\n\", \"obj = klass.new\\n\", \"obj.f1\\n\", \"obj.f2\\n\", \"obj.f3\\n\", \"#klass.g1 uncovered\\n\", \"klass.g2\\n\"], @coverage=#<Rcov::CoverageInfo:0x797cc8 @cover=[false, false, false, false, false, false, false, false, false, false]>, @counts=[0, 1, 1, 0, 1, 1, 1, 1, 1, 0], @is_begin_comment=[false, false, false, false, false, false, false, false, false, false], @heredoc_start=[false, false, false, false, false, false, false, false, false, false], @multiline_string_start=[false, false, false, false, false, false, false, false, false, false]>]]\n">.
44 tests, 305 assertions, 26 failures, 0 errors, 0 skips
rake aborted!
Command failed with status (1): [/usr/local/ruby19/bin/ruby -I"/Users/siefc...]
rake.rb:969:in `block in sh'
rake.rb:982:in `call'
rake.rb:982:in `sh'
rake.rb:1070:in `sh'
rake.rb:1005:in `ruby'
rake.rb:1070:in `ruby'
rake/testtask.rb:117:in `block (2 levels) in define'
rake.rb:1088:in `verbose'
rake/testtask.rb:102:in `block in define'
rake.rb:617:in `call'
rake.rb:617:in `block in execute'
rake.rb:612:in `each'
rake.rb:612:in `execute'
rake.rb:578:in `block in invoke_with_call_chain'
/usr/local/ruby19/lib/ruby/1.9.1/monitor.rb:190:in `mon_synchronize'
rake.rb:571:in `invoke_with_call_chain'
rake.rb:588:in `block in invoke_prerequisites'
rake.rb:585:in `each'
rake.rb:585:in `invoke_prerequisites'
rake.rb:577:in `block in invoke_with_call_chain'
/usr/local/ruby19/lib/ruby/1.9.1/monitor.rb:190:in `mon_synchronize'
rake.rb:571:in `invoke_with_call_chain'
rake.rb:588:in `block in invoke_prerequisites'
rake.rb:585:in `each'
rake.rb:585:in `invoke_prerequisites'
rake.rb:577:in `block in invoke_with_call_chain'
/usr/local/ruby19/lib/ruby/1.9.1/monitor.rb:190:in `mon_synchronize'
rake.rb:571:in `invoke_with_call_chain'
rake.rb:564:in `invoke'
rake.rb:2027:in `invoke_task'
rake.rb:2005:in `block (2 levels) in top_level'
rake.rb:2005:in `each'
rake.rb:2005:in `block in top_level'
rake.rb:2044:in `standard_exception_handling'
rake.rb:1999:in `top_level'
rake.rb:1977:in `block in run'
rake.rb:2044:in `standard_exception_handling'
rake.rb:1974:in `run'
/usr/local/ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.4/bin/rake:31:in `<top (required)>'
/usr/local/ruby19/bin/rake:19:in `load'
/usr/local/ruby19/bin/rake:19:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment