-
Notifications
You must be signed in to change notification settings - Fork 170
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
IteratorOfLongs and IteratorOfShorts #854
Conversation
Job #854 is now in scope, role is |
This pull request #854 is assigned to @Vatavuk/z, here is why; the budget is 15 minutes, see §4; please, read §27 and when you decide to accept the changes, inform @llorllale/z (the architect) right in this ticket; if you decide that this PR should not be accepted ever, also inform the architect; this blog post will help you understand what is expected from a code reviewer |
@victornoel build is not passing, there are some formatting errors |
Codecov Report
@@ Coverage Diff @@
## master #854 +/- ##
============================================
+ Coverage 85.53% 85.55% +0.02%
- Complexity 1392 1396 +4
============================================
Files 251 253 +2
Lines 3698 3704 +6
Branches 211 209 -2
============================================
+ Hits 3163 3169 +6
Misses 487 487
Partials 48 48
Continue to review full report at Codecov.
|
@Vatavuk sorry about that, it seems this week is not my week ;) |
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.
@victornoel Good job! just two comments and we can merge
this.iteratorWithFetchedElements().next(); | ||
} | ||
|
||
private IteratorOfLongs iteratorWithFetchedElements() { |
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.
@victornoel this should be static method, but better approach would be to remove it completely and move its implementation back to tests using different iterator size in each test. This would remove dependency between tests and provide more test diversity.
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 agree, I also did the same for the other IteratorOfXXX
tests (actually some of them were already as you propose).
this.iteratorWithFetchedElements().next(); | ||
} | ||
|
||
private IteratorOfShorts iteratorWithFetchedElements() { |
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.
@victornoel same comment as for IteratorOfLongsTest
9cf061c
to
6caaae6
Compare
@Vatavuk it is fixed now and rebased on master |
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.
@llorllale good to merge |
@llorllale I think this should be merged |
* | ||
* <p>There is no thread-safety guarantee.</p> | ||
* | ||
* @since 0.32 |
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.
@victornoel should be 0.34 now
* | ||
* <p>There is no thread-safety guarantee.</p> | ||
* | ||
* @since 0.32 |
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.
@victornoel should be 0.34 now
/** | ||
* Tests for {@link IteratorOfLongs}. | ||
* | ||
* @since 0.32 |
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.
@victornoel 0.34 now
/** | ||
* Tests for {@link IteratorOfShorts}. | ||
* | ||
* @since 0.32 |
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.
@victornoel 0.34 now
@victornoel there are a lot of irrelevant changes in this PR. Although they're small, they're introducing too much noise. Let's keep PRs tightly focused in the future please |
@victornoel also see my comments regarding |
@llorllale duly noted for the extra changes, next time I will open issues. The |
@rultor merge |
@llorllale OK, I'll try to merge now. You can check the progress of the merge here |
@llorllale Done! FYI, the full log is here (took me 9min) |
@elenavolokhova/z please review this job completed by @Vatavuk/z, as in §30; the job will be fully closed and all payments will be made when the quality review is completed |
The job #854 is now out of scope |
Payment to |
@0crat quality good |
Quality review completed: +8 point(s) just awarded to @elenavolokhova/z |
This is for #838.
This:
IteratorOfLongs
andIteratorOfShorts
IterableOfLongs
andIterableOfShorts
IteratorOfXXX
(because it was so easy to do so and blatantly incorrect)IteratorOfXXX
(because I spent some time trying to understand something simple: that their role was to convert from primitive to objects)IteratorOfXXX
inIterableOfXXX
I realise this is a bit more than the job asked, but all the other changes I made, I had to make them for the code I was introducing anyway.