Skip to content

Latest commit

 

History

History
125 lines (84 loc) · 4.31 KB

ut_coverage.md

File metadata and controls

125 lines (84 loc) · 4.31 KB

UT_COVERAGE

Variables

Name Code Description
g_coverage_id
g_coverage_id   tt_coverage_id_arr;
g_develop_mode
g_develop_mode  boolean not null := false;
g_is_started
g_is_started    boolean not null := false;
l_full_name
  l_full_name varchar2(100);
l_view_name
  l_view_name      varchar2(200) := ut_metadata.get_dba_view('dba_source');
else
  else
l_full_name := 'lower(s.owner
end
  end if;
  l_result := l_result
' from '
end
  end if;
return
  return l_result;
l_skip_objects
  l_skip_objects  ut_object_names;
l_sql
  l_sql           varchar2(32767);
end
  end if;
  l_sql := a_sql;
else
  else
open l_cursor for l_sql using a_coverage_options.schema_names, l_skip_objects;
end
  end if;
return
  return l_cursor;
l_cov_sources_crsr
  l_cov_sources_crsr sys_refcursor;
l_cov_sources_data
  l_cov_sources_data ut_coverage_helper.t_coverage_sources_tmp_rows;
    l_cov_sources_crsr := get_cov_sources_cursor(a_coverage_options,a_sql);
loop
    loop
fetch l_cov_sources_crsr bulk collect into l_cov_sources_data limit 1000;
exit
      exit when l_cov_sources_crsr%notfound;
end
    end loop;
close
    close l_cov_sources_crsr;
end
  end if;

Constants

Name Code Description
gc_proftab_coverage
gc_proftab_coverage    constant varchar2(32) := 'proftab';
gc_block_coverage
gc_block_coverage      constant varchar2(32) := 'block';
gc_extended_coverage
gc_extended_coverage   constant varchar2(32) := 'extended';

Exceptions

Name Code Description
g_coverage_id
g_coverage_id   tt_coverage_id_arr;
g_develop_mode
g_develop_mode  boolean not null := false;
g_is_started
g_is_started    boolean not null := false;
l_full_name
  l_full_name varchar2(100);
l_view_name
  l_view_name      varchar2(200) := ut_metadata.get_dba_view('dba_source');
else
  else
l_full_name := 'lower(s.owner
end
  end if;
  l_result := l_result
' from '
end
  end if;
return
  return l_result;
l_skip_objects
  l_skip_objects  ut_object_names;
l_sql
  l_sql           varchar2(32767);
end
  end if;
  l_sql := a_sql;
else
  else
open l_cursor for l_sql using a_coverage_options.schema_names, l_skip_objects;
end
  end if;
return
  return l_cursor;
l_cov_sources_crsr
  l_cov_sources_crsr sys_refcursor;
l_cov_sources_data
  l_cov_sources_data ut_coverage_helper.t_coverage_sources_tmp_rows;
    l_cov_sources_crsr := get_cov_sources_cursor(a_coverage_options,a_sql);
loop
    loop
fetch l_cov_sources_crsr bulk collect into l_cov_sources_data limit 1000;
exit
      exit when l_cov_sources_crsr%notfound;
end
    end loop;
close
    close l_cov_sources_crsr;
end
  end if;

COVERAGE_START Procedure

Public functions

Syntax

procedure coverage_start(a_coverage_options ut_coverage_options default null)

MOCK_COVERAGE_ID Procedure

*
Allows overwriting of private global variable g_coverage_id
Used internally, only for unit testing of the framework only

Syntax

procedure mock_coverage_id(a_coverage_id integer,a_coverage_type in varchar2)