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

feat: Add ContainsMatchers and ValidPattern. #7

Merged
merged 2 commits into from
Nov 8, 2020

Conversation

erikgeiser
Copy link
Member

@erikgeiser erikgeiser commented Nov 8, 2020

ContainsMatchers only contains a bool to make it easy to use even though parsing can actually fail. That's why I also added ValidPattern so users can distinguish between the two cases. I also found a more elegant way to find the static prefix.

@codecov
Copy link

codecov bot commented Nov 8, 2020

Codecov Report

Merging #7 (3e57503) into main (8c8b91c) will decrease coverage by 1.80%.
The diff coverage is 83.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main       #7      +/-   ##
==========================================
- Coverage   84.41%   82.60%   -1.81%     
==========================================
  Files           2        2              
  Lines          77       92      +15     
==========================================
+ Hits           65       76      +11     
- Misses          6        9       +3     
- Partials        6        7       +1     
Impacted Files Coverage Δ
prefix.go 83.78% <83.33%> (-7.13%) ⬇️

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 8c8b91c...3e57503. Read the comment docs.

Copy link
Member

@caarlos0 caarlos0 left a comment

Choose a reason for hiding this comment

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

Lgtm

@caarlos0 caarlos0 merged commit 95758cf into main Nov 8, 2020
@caarlos0 caarlos0 deleted the feat/contains-matchers-and-valid-pattern branch November 8, 2020 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants