File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,6 +32,9 @@ create or replace package test_annotations is
3232
3333 --%test(Parse package level annotations with annotation params containing brackets)
3434 procedure brackets_in_desc;
35+
36+ --%test(Test space before annotation params)
37+ procedure test_space_Before_Annot_Params;
3538
3639end test_annotations;
3740/
@@ -515,6 +518,37 @@ END;';
515518
516519 check_annotation_parsing(l_expected, l_parsing_result);
517520 end;
521+
522+ procedure test_space_Before_Annot_Params is
523+ l_source clob;
524+ l_parsing_result ut_annotations.typ_annotated_package;
525+ l_expected ut_annotations.typ_annotated_package;
526+ l_ann_param ut_annotations.typ_annotation_param;
527+
528+ begin
529+ l_source := 'PACKAGE test_tt AS
530+ /*
531+ Some comment
532+ -- inlined
533+ */
534+ -- %suite
535+ -- %suitepath (all.globaltests)
536+
537+ procedure foo;
538+ END;';
539+
540+ --Act
541+ l_parsing_result := ut_annotations.parse_package_annotations(l_source);
542+
543+ --Assert
544+ l_expected.package_annotations('suite').params := cast( null as ut_annotations.tt_annotation_params);
545+
546+ l_ann_param := null;
547+ l_ann_param.val := 'all.globaltests';
548+ l_expected.package_annotations('suitepath').params(1) := l_ann_param;
549+
550+ check_annotation_parsing(l_expected, l_parsing_result);
551+ end;
518552
519553end test_annotations;
520554/
You can’t perform that action at this time.
0 commit comments