-
Notifications
You must be signed in to change notification settings - Fork 189
Fix problem with identifying annotations when windows newline is used #435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
050c4a1
Fix problem with identifying annotations on windows machines when win…
pesse 7699c39
Update RunAll.sql
pesse bba129d
Merge branch 'develop' into fix_newline_in_annotations
pesse 061cdf3
Moved fix of the issue to ut_metadata.get_package_spec_source as sugg…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next
Next commit
Fix problem with identifying annotations on windows machines when win…
…dows newline is used
- Loading branch information
commit 050c4a12c23ff18016c4d74b96c1aa4a3142ff79
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
...nnotations/ut_annotations.parse_package_annotations.ParseAnnotationWithWindowsNewline.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| PROMPT Parse package level annotations with windows newline | ||
|
|
||
| --Arrange | ||
| declare | ||
| l_source clob; | ||
| l_parsing_result ut_annotations.typ_annotated_package; | ||
| l_expected ut_annotations.typ_annotated_package; | ||
| l_ann_param ut_annotations.typ_annotation_param; | ||
|
|
||
| begin | ||
| l_source := 'PACKAGE test_tt AS | ||
| -- %suite | ||
| -- %displayname(Name of suite)' || chr(13) || chr(10) | ||
| || ' -- %suitepath(all.globaltests) | ||
| END;'; | ||
|
|
||
| --Act | ||
| l_parsing_result := ut_annotations.parse_package_annotations(l_source); | ||
|
|
||
| --Assert | ||
| l_ann_param := null; | ||
| l_ann_param.val := 'Name of suite'; | ||
| l_expected.package_annotations('suite').params := cast( null as ut_annotations.tt_annotation_params); | ||
| l_expected.package_annotations('displayname').params(1) := l_ann_param; | ||
|
|
||
| l_ann_param := null; | ||
| l_ann_param.val := 'all.globaltests'; | ||
| l_expected.package_annotations('suitepath').params(1) := l_ann_param; | ||
|
|
||
| check_annotation_parsing(l_expected, l_parsing_result); | ||
|
|
||
| if ut_expectation_processor.get_status = ut_utils.tr_success then | ||
| :test_result := ut_utils.tr_success; | ||
| end if; | ||
|
|
||
| end; | ||
| / |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that it would be better to put the fix into:
ut_metadata.get_package_spec_sourceso that the whole source that we parse have Unix-style end of line.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed and fixed. Thanks for the hint.