-
Notifications
You must be signed in to change notification settings - Fork 188
Expand file tree
/
Copy pathut_suite_manager.pks
More file actions
106 lines (91 loc) · 3.55 KB
/
Copy pathut_suite_manager.pks
File metadata and controls
106 lines (91 loc) · 3.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
create or replace noneditionable package ut_suite_manager authid current_user is
/*
utPLSQL - Version 3
Copyright 2016 - 2026 utPLSQL Project
Licensed under the Apache License, Version 2.0 (the "License"):
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
/**
* Resposible for building hierarhy of sutes from individual suites created by suite_builder
*/
/**
* @private
*
* Returns a list of Unit Test packages that exist in a given database schema
* IMPORTANT! The returned list is not filtered by user privileges.
* To be used internally only.
*
* @param a_schema_names list of schemas to return the information for
* @return array containing unit test schema and object names
*/
function get_schema_ut_packages(a_schema_names ut_varchar2_rows, a_schema_name_expr varchar2) return ut_object_names;
/**
* Builds a hierarchical suites based on given suite-paths
*
* @param a_paths list of suite-paths or procedure names or package names or schema names
* @return array containing root suites-ready to be executed
*
*/
--TODO:Zerknij czy mozna wywalic
function configure_execution_by_path(a_paths ut_varchar2_list, a_random_seed positive := null) return ut_suite_items;
/**
* Builds a hierarchical suites based on given suite-paths
*
* @param a_paths list of suite-paths or procedure names or package names or schema names
* @param a_suites returned array containing root suites-ready to be executed
*
*/
procedure configure_execution_by_path(
a_paths in ut_varchar2_list,
a_suites out nocopy ut_suite_items,
a_random_seed in positive := null,
a_tags in varchar2 := null
);
/**
* Cleanup paths by removing leading/trailing whitespace and making paths lowercase
* Get list of schema names from execution paths.
*/
function get_schema_names(a_paths ut_varchar2_list) return ut_varchar2_rows;
/**
* Constructs a list of suites based on the list of annotations passed
* the suites are stored in cache
*/
function build_suites_from_annotations(
a_owner_name varchar2,
a_annotated_objects sys_refcursor,
a_path varchar2 := null,
a_object_name varchar2 := null,
a_procedure_name varchar2 := null,
a_skip_all_objects boolean := false
) return ut_suite_items;
/**
* Returns a ref cursor containing information about unit test suites and the tests contained in them
*
* @param a_paths list of paths to be resolved and return a suites.
*/
function get_suites_info(
a_paths ut_varchar2_list
) return sys_refcursor;
/**
* Returns true if given suite item exists
*
* @param a_owner owner of items to retrieve
* @param a_package_name name of suite package (optional)
* @param a_procedure_name name of suite item (optional)
* @param a_item_type suite_item type (optional)
* @return ut_suite_items_info table of objects
*/
function suite_item_exists(
a_owner_name varchar2,
a_package_name varchar2 := null,
a_procedure_name varchar2 := null
) return boolean;
end ut_suite_manager;
/