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

Improved the phone number analyzer and added test cases for it. #94

Merged
merged 3 commits into from
Oct 5, 2019
Merged

Conversation

qkniep
Copy link
Contributor

@qkniep qkniep commented Oct 5, 2019

The improved analyzer should recognize only valid country codes, allows arbitrary punctuation between number groups, and puts bounds on number length (2-17( characters excluding country code). Also, it can be used on strings which contain a phone number somewhere, the number does not have to be the sole content of the string.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 115

  • 44 of 45 (97.78%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+1.3%) to 60.272%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pastepwn/analyzers/tests/phonenumberanalyzer_test.py 36 37 97.3%
Totals Coverage Status
Change from base Build 96: 1.3%
Covered Lines: 1596
Relevant Lines: 2648

💛 - Coveralls

@coveralls
Copy link

coveralls commented Oct 5, 2019

Pull Request Test Coverage Report for Build 115

  • 44 of 45 (97.78%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+1.3%) to 60.272%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pastepwn/analyzers/tests/phonenumberanalyzer_test.py 36 37 97.3%
Totals Coverage Status
Change from base Build 96: 1.3%
Covered Lines: 2394
Relevant Lines: 3972

💛 - Coveralls

@qkniep qkniep mentioned this pull request Oct 5, 2019
Copy link
Owner

@d-Rickyy-b d-Rickyy-b left a comment

Choose a reason for hiding this comment

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

Nice improvements and tests!

@d-Rickyy-b d-Rickyy-b merged commit af97877 into d-Rickyy-b:master Oct 5, 2019
@d-Rickyy-b
Copy link
Owner

Fixed #90

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.

4 participants