Adjustment of behaviour of hasXAttributesSatisfying and hasXAttribute… - #4882
Conversation
…sSatisfyingExactly assertions
Codecov ReportBase: 90.90% // Head: 91.06% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #4882 +/- ##
============================================
+ Coverage 90.90% 91.06% +0.16%
- Complexity 4803 4832 +29
============================================
Files 545 545
Lines 14340 14363 +23
Branches 1383 1368 -15
============================================
+ Hits 13036 13080 +44
+ Misses 897 886 -11
+ Partials 407 397 -10
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
|
@trask I think this was originally your request. Can you review? Thanks! |
|
How should I update this branch with main? Merge main here, or rebase this one on main and force push? |
|
Merge main branch into this and push please! |
| public final PointAssertT hasAttributesSatisfyingExactly( | ||
| Iterable<AttributeAssertion> assertions) { | ||
| AssertUtil.assertAttributesExactly(actual.getAttributes(), assertions); | ||
| return myself; |
There was a problem hiding this comment.
Can you add coverage for the new code?
There was a problem hiding this comment.
Sure, I'll try to finish this one tomorrow :)
|
Ping @trask 🙂 |
|
sorry for late reply, I'll look at it this week |
trask
left a comment
There was a problem hiding this comment.
thx @lmonkiewicz!
comments below are just adding the second (very helpful) sentence across all of the javadocs
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
open-telemetry#4882) * Adjustment of behaviour of hasXAttributesSatisfying and hasXAttributesSatisfyingExactly assertions * Cleanup * Additional test coverage for new assertion method * Added javadoc on assertions Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com> Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
Adjustment of
hasXAttributesSatisfyingandhasXAttributesSatisfyingExactlyassertions, as described in issueCloses: #4778