Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 924eb9b

Browse files
committed
Update issue with part covered being zero.
1 parent 2027421 commit 924eb9b

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

source/reporters/ut_coverage_report_html_helper.pkb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ function get_details_file_content(a_object_id varchar2, a_unit ut_object_name, a
109109
function get_block_file_attributes(a_coverage_unit ut_coverage.t_unit_coverage) return varchar2 is
110110
l_result varchar2(32767);
111111
begin
112-
if (a_coverage_unit.partcovered_lines is not null) OR (a_coverage_unit.partcovered_lines > 0) then
112+
if (a_coverage_unit.partcovered_lines is not null) AND (a_coverage_unit.partcovered_lines > 0) then
113113
l_result := ' (including <span class="yellow"><b>'|| a_coverage_unit.partcovered_lines ||'</b> lines partially covered</span> )';
114114
else
115115
l_result := null;
@@ -212,7 +212,7 @@ function get_details_file_content(a_object_id varchar2, a_unit ut_object_name, a
212212
function get_block_list_attributes(a_coverage_unit ut_coverage.t_coverage) return varchar2 is
213213
l_result varchar2(32767);
214214
begin
215-
if (a_coverage_unit.partcovered_lines is not null) OR (a_coverage_unit.partcovered_lines > 0) then
215+
if (a_coverage_unit.partcovered_lines is not null) AND (a_coverage_unit.partcovered_lines > 0) then
216216
l_result := ' (including <span class="yellow"><b>'|| a_coverage_unit.partcovered_lines ||'</b> lines partially covered</span> )';
217217
else
218218
l_result := null;

test/core/reporters/test_coverage/test_html_proftab_reporter.pkb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ create or replace package body test_html_proftab_reporter is
66
l_actual clob;
77
begin
88
--Arrange
9-
l_expected := '%<h3>UT3.DUMMY_COVERAGE</h3>%<b>3</b> relevant lines. <span class="green"><b>2</b> lines covered</span> and <span class="red"><b>1</b> lines missed%';
9+
l_expected := '%<h3>UT3.DUMMY_COVERAGE</h3>%<b>3</b> relevant lines. <span class="green"><b>2</b> lines covered</span> and <span class="red"><b>1</b> lines missed%';
1010

1111
--l_expected := '%<div class="header"> <h3>UT3.DUMMY_COVERAGE</h3><h4><span class="green">66%</span> lines covered</h4><div> <b>3</b> relevant lines. <span class="green"><b>2</b> lines covered</span> ) and <span class="red"><b>1</b> lines missed</span></div></div>%';
1212
--Act

0 commit comments

Comments
 (0)