Skip to content
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

(#1531) Bump cactoos-matchers to 0.24 #1543

Merged
merged 1 commit into from
Feb 22, 2021

Conversation

victornoel
Copy link
Collaborator

Bump cactoos-matchers to latest version, use Verifies instead of MatcherOf and replace Joined by Concatenated when possible.

@codecov-io
Copy link

codecov-io commented Feb 21, 2021

Codecov Report

Merging #1543 (19b8a01) into master (7a7e221) will decrease coverage by 0.05%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1543      +/-   ##
============================================
- Coverage     90.90%   90.85%   -0.06%     
+ Complexity     1574     1569       -5     
============================================
  Files           292      292              
  Lines          3696     3696              
  Branches        121      121              
============================================
- Hits           3360     3358       -2     
- Misses          306      308       +2     
  Partials         30       30              
Impacted Files Coverage Δ Complexity Δ
src/main/java/org/cactoos/io/TempFolder.java 100.00% <ø> (ø) 8.00 <0.00> (ø)
src/main/java/org/cactoos/text/Capitalized.java 100.00% <100.00%> (ø) 5.00 <1.00> (ø)
src/main/java/org/cactoos/text/PaddedStart.java 100.00% <100.00%> (ø) 2.00 <0.00> (ø)
src/main/java/org/cactoos/text/UncheckedText.java 81.81% <0.00%> (-9.10%) 10.00% <0.00%> (-1.00%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7a7e221...19b8a01. Read the comment docs.

@victornoel
Copy link
Collaborator Author

@0crat status

@0crat
Copy link
Collaborator

0crat commented Feb 22, 2021

@0crat status (here)

@victornoel This is what I know about this job in C63314D6Z, as in §32:

Copy link
Contributor

@baudoliver7 baudoliver7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@victornoel Please, see some few comments below.

@@ -59,7 +58,7 @@ void iteratesListWithIndexFromBiFunc() {
new HasValue<>(
Matchers.allOf(
Matchers.equalTo(true),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@victornoel We could use here new IsEqual<>(true) instead of static method Matchers.equalTo.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@baudoliver7 good point, actually we can even new IsTrue() directly :) I will do that

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@baudoliver7 actually I simplified the code so it's a bit different than proposed

@@ -83,7 +82,7 @@ void iteratesListWithIndexFromBiProc() {
new HasValue<>(
Matchers.allOf(
Matchers.equalTo(true),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@victornoel Same here.

@@ -65,12 +64,12 @@ public boolean matchesSafely(final List<E> list) {
new Assertion<>(
"must have an index for the sample item",
list.indexOf(this.sample),
new MatcherOf<>(i -> i >= 0)
new Verifies<>(i -> i >= 0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@victornoel IMHO, I think having matchers IsGreaterThan, IsLessThan and
IsEmpty for list and iterable in cactoos-matchers will be very nice :) We have only static methods of them (greatThan and lessThan) in Hamcrest.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@baudoliver7 that's a good idea, could you open tickets in cactoos-matchers for those? You will get points for them too! Maybe one for IsGreaterThan/IsLessThan and one for IsEmpty? we can discuss them there then!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@victornoel Great !

@victornoel
Copy link
Collaborator Author

@baudoliver7 see my answers and changes, thx

@baudoliver7
Copy link
Contributor

@victornoel thx, looks good to me :)

@victornoel
Copy link
Collaborator Author

@rultor merge

@rultor
Copy link
Collaborator

rultor commented Feb 22, 2021

@rultor merge

@victornoel OK, I'll try to merge now. You can check the progress of the merge here

@rultor rultor merged commit a23b69d into yegor256:master Feb 22, 2021
@rultor
Copy link
Collaborator

rultor commented Feb 22, 2021

@rultor merge

@victornoel Done! FYI, the full log is here (took me 8min)

@0crat 0crat added the qa label Feb 22, 2021
@0crat
Copy link
Collaborator

0crat commented Feb 22, 2021

Job was finished in 19 hours, bonus for fast delivery is possible (see §36)

@0crat 0crat removed the 0crat/scope label Feb 22, 2021
@0crat
Copy link
Collaborator

0crat commented Feb 22, 2021

@sereshqua/z please review this job completed by @baudoliver7/z, as in §30; the job will be fully closed and all payments will be made when the quality review is completed

@sereshqua
Copy link

@0crat quality good

@0crat 0crat added quality/good and removed qa labels Feb 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants