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

(#203) Improve TextMatcher API and messages #228

Merged
merged 1 commit into from Feb 14, 2021

Conversation

victornoel
Copy link
Collaborator

This is in the continuation of #203 to improve the API of TextMatcher and its messages

@codecov
Copy link

codecov bot commented Feb 13, 2021

Codecov Report

Merging #228 (ae8c090) into master (7cf16c1) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #228   +/-   ##
=========================================
  Coverage     98.82%   98.82%           
  Complexity      139      139           
=========================================
  Files            27       27           
  Lines           339      339           
  Branches          5        4    -1     
=========================================
  Hits            335      335           
  Misses            4        4           
Impacted Files Coverage Δ Complexity Δ
...java/org/llorllale/cactoos/matchers/HasString.java 100.00% <ø> (ø) 3.00 <0.00> (ø)
...va/org/llorllale/cactoos/matchers/TextMatcher.java 100.00% <100.00%> (ø) 9.00 <5.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 7cf16c1...ae8c090. Read the comment docs.

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 comment below.

* @param expected The description of the matcher's expected text.
* @param expected The prefix of the matcher's expected text.
* @param actual The prefix of the actual text.
* @checkstyle ParameterNumberCheck (2 lines)
*/
public TextMatcher(
Copy link
Contributor

Choose a reason for hiding this comment

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

@victornoel Could you add a version tag for this new constructor ?

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 in cactoos-matchers we only use @since 1.0.0 everywhere on classes and not on methods. Once v1 will be released, we will start doing it properly. I think actually we should do the same in cactoos maybe... Personally I find those @since tags really useless, see yegor256/qulice#1036

Copy link
Contributor

Choose a reason for hiding this comment

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

@victornoel got it :)

@baudoliver7
Copy link
Contributor

@victornoel thx, looks good for me.

@victornoel
Copy link
Collaborator Author

@rultor merge

@rultor
Copy link
Collaborator

rultor commented Feb 14, 2021

@rultor merge

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

@rultor rultor merged commit ae8c090 into llorllale:master Feb 14, 2021
@rultor
Copy link
Collaborator

rultor commented Feb 14, 2021

@rultor merge

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

@victornoel victornoel deleted the text-matcher branch February 14, 2021 18:02
@0crat 0crat added the qa label Feb 14, 2021
@0crat
Copy link
Collaborator

0crat commented Feb 14, 2021

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

@0crat
Copy link
Collaborator

0crat commented Feb 14, 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

@0crat 0crat removed the 0crat/scope label Feb 14, 2021
@sereshqua
Copy link

@0crat quality acceptable

@sereshqua
Copy link

@baudoliver7 please make sure you will find at least 3 issues during next CR, thanks!

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.

None yet

5 participants