Sha256: 41d36fbf585fc177209a20a37b9e4f8cdefa6af99398de4ac2599ef61eaccea2
Contents?: true
Size: 709 Bytes
Versions: 1
Compression:
Stored size: 709 Bytes
Contents
require 'test_helper' require 'coverage/statistics' module Coverage class StatisticsTest < Test::Unit::TestCase def setup @statistics = Statistics.new('test.rb', [nil, 1, 0, 1, nil, 0, 1, 0, nil, nil]) end def test_total assert_equal(10, @statistics.total) end def test_lines_of_code assert_equal(6, @statistics.lines_of_code) end def test_lines_of_covered_code assert_equal(3, @statistics.lines_of_covered_code) end def test_total_coverage assert_equal("30.00", @statistics.total_coverage) end def test_code_coverage assert_equal("50.00", @statistics.code_coverage) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
coverage-printer-0.1.0 | test/coverage/statistics_test.rb |