-
Notifications
You must be signed in to change notification settings - Fork 189
Feature/rework matcher #1076
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
Feature/rework matcher #1076
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
48abf1a
Initial checkin
lwasylow 7041912
added expectation
lwasylow 13d86b6
Adding more methods
lwasylow caeeb30
Adding contain and not contain
lwasylow 8ff4f6b
Adding code and tests,.
lwasylow 89cb0bc
Fixingtoo long names
lwasylow a5481ac
fixing issue
lwasylow 9ee0e75
Update documentation and tests
lwasylow a660208
First code corrections
lwasylow ada1ea4
Resolving another comment
lwasylow fe1b0cb
Updating issues
lwasylow 013db74
Update tble
lwasylow b5c73b4
Separated into two different matchers
jgebal 2e721da
CHECKPOINT
lwasylow fbc0f26
Merge branch 'feature/rework_matcher' of https://github.com/utPLSQL/u…
lwasylow f182430
Update uninstall
lwasylow e3fb2d7
Update progress
lwasylow 322e0a1
Making code a bit more readable
lwasylow ff15596
Added tests for `be_within_pct`
jgebal 3cae9a2
Fixed test issue
jgebal 22549db
Fixed stacktrace for failed expectations on chained matchers.
jgebal 1d771a5
Update timestamps
lwasylow 363c333
Fixed and simplified matcher
jgebal 0ea8925
Fixed native dynamic SQL types compatibility for 11g
jgebal 7c01afb
Fixed native dynamic SQL types compatibility for 11g
jgebal 66d92fc
Merge branch 'develop' into feature/rework_matcher
jgebal 590fb38
Improving test stability (flaky tests)
jgebal 5e2642a
Removing reference to ut3_develop schema.
jgebal ed06e33
Relaxed sql-injection check to work with 11g2
jgebal 38f3cbc
Fixed issues with comparison of dates×tamps using interval year-…
jgebal 86e84c8
Improving code coverage.
jgebal 718ac0d
Improved test stability.
jgebal 6dbef20
Fixing build process to build using develop branch as testing framewo…
jgebal 25b55b4
Improving test coverage.
jgebal 5b5a5c0
Improving matcher documentation
jgebal 7fec0f9
Added tests for 0 value of actual and expected and actual greater tha…
jgebal fd7ef9c
Fixed issues with precission of distance. `NATURAL` is a subtype of i…
jgebal 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
Fixed and simplified matcher
- Loading branch information
commit 363c333ba466eef38b57992f821afd397bb08d6a
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| create or replace package body ut_be_within_helper as | ||
| /* | ||
| utPLSQL - Version 3 | ||
| Copyright 2016 - 2019 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. | ||
| */ | ||
|
|
||
| function values_within_abs_distance( | ||
| a_value_1 ut_data_value, a_value_2 ut_data_value, a_distance ut_data_value | ||
| ) return boolean is | ||
| l_result boolean; | ||
| begin | ||
| execute immediate q'[ | ||
| begin | ||
| :result := | ||
| treat(:a_value_1 as ut3_develop.]'||a_value_1.self_type||q'[).data_value | ||
| between | ||
| treat(:a_value_2 as ut3_develop.]'||a_value_2.self_type||q'[).data_value | ||
| - treat(:a_distance as ut3_develop.]'||a_distance.self_type||q'[).data_value | ||
| and | ||
| treat(:a_value_2 as ut3_develop.]'||a_value_2.self_type||q'[).data_value | ||
| + treat(:a_distance as ut3_develop.]'||a_distance.self_type||q'[).data_value; | ||
| end; | ||
| ]' | ||
| using out l_result, a_value_1, a_value_2, a_distance; | ||
| return l_result; | ||
| end; | ||
|
|
||
| end; | ||
| / |
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,24 @@ | ||
| create or replace package ut_be_within_helper authid definer as | ||
| /* | ||
| utPLSQL - Version 3 | ||
| Copyright 2016 - 2019 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. | ||
| */ | ||
|
|
||
| function values_within_abs_distance( | ||
| a_value_1 ut_data_value, a_value_2 ut_data_value, a_distance ut_data_value | ||
| ) return boolean; | ||
|
|
||
| end; | ||
| / |
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.