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

Skip to content

Commit a56231c

Browse files
committed
finished test_annotations.pck
moved tests to test_suite_manager.pck (made a mistake to place them in ut_test_suite)
1 parent 49e9586 commit a56231c

3 files changed

Lines changed: 437 additions & 219 deletions

File tree

tests2/test_annotations.pck

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff 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

3639
end 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

519553
end test_annotations;
520554
/

0 commit comments

Comments
 (0)