-
Notifications
You must be signed in to change notification settings - Fork 6
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
Extend exists operator to support key paths and negation #334
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #334 +/- ##
==========================================
+ Coverage 84.56% 84.61% +0.05%
==========================================
Files 147 148 +1
Lines 7037 7080 +43
Branches 3252 3271 +19
==========================================
+ Hits 5951 5991 +40
- Misses 409 411 +2
- Partials 677 678 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
BenchmarksBenchmark execution time: 2024-09-13 16:46:06 Comparing candidate commit e602c9a in PR branch Found 1 performance improvements and 0 performance regressions! Performance is the same for 0 metrics, 0 unstable metrics. scenario:global-benchmark.random
|
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.
Looks good, you can mayb
This PR adds support for asserting the presence of key paths when using the exists operator, such as through the following example:
In addition, the
!exists
operator has also been introduced. Since addresses are provided in stages, it's not currently possible to safely assert the absence of an address, hence the operator can only be used with key paths, and limited to a single address, for example: