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

Added iban support for missing eu members #74

Merged

Conversation

jsbwilken
Copy link
Contributor

Hey, I saw you'd like to have support for more IBANs. I've added the eu ones that were missing (to my best knowledge) and sorted the list alphabetically, so finding missing countries is a bit easier.

Currently, the tests for the new ibans are missing. I'd like to know if it would be ok for you to refactor the iban test, to make it parameterized and check if the generated iban is matched by a regular expression defined for each country. This would reduce the boilerplate code required to test a new iban. However, I would be fine to implement the tests the same way as the existing ones.

@codecov-commenter
Copy link

codecov-commenter commented Aug 6, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -1.33% ⚠️

Comparison is base (ab2ca46) 98.30% compared to head (b3d0020) 96.98%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #74      +/-   ##
==========================================
- Coverage   98.30%   96.98%   -1.33%     
==========================================
  Files          22       22              
  Lines        1767     1722      -45     
==========================================
- Hits         1737     1670      -67     
- Misses         30       52      +22     
Files Changed Coverage Δ
src/modules/finance/FinanceTest.cpp 88.35% <100.00%> (-11.65%) ⬇️

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Owner

@cieslarmichal cieslarmichal left a comment

Choose a reason for hiding this comment

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

Thanks for contributing! We have a discord channel for contributors if you want to join us: here. Feel free to refactor iban tests. Please look at the comment I added about adding new countries to supported iban countries vector.

include/faker-cxx/types/IbanCountry.h Outdated Show resolved Hide resolved
Added gmock neccessary for ASSERT_THAT
@cieslarmichal
Copy link
Owner

Good job, nice tests refactor but it fails in windows environment in cicd pipeline, could you please fix that?

@cieslarmichal cieslarmichal merged commit ab056bb into cieslarmichal:main Aug 8, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants