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

Created basic Epic Key analyzer with unit test #118

Merged
merged 1 commit into from
Oct 7, 2019
Merged

Created basic Epic Key analyzer with unit test #118

merged 1 commit into from
Oct 7, 2019

Conversation

synackray
Copy link
Contributor

Created Epic Key analyzer per Issue #97. Please note, the regex may be improved on if there are invalid characters that should not match.

$ python -m unittest discover -s . -v -p "epickeyanalyzer_test.py"
test_match_negative (pastepwn.analyzers.tests.epickeyanalyzer_test.TestEpicKeyAnalyzer)
Test if negatives are not recognized ... ok
test_match_positive (pastepwn.analyzers.tests.epickeyanalyzer_test.TestEpicKeyAnalyzer)
Test if positives are recognized ... ok


Ran 2 tests in 0.001s

@synackray synackray mentioned this pull request Oct 7, 2019
@coveralls
Copy link

coveralls commented Oct 7, 2019

Pull Request Test Coverage Report for Build 168

  • 35 of 36 (97.22%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.7%) to 63.588%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pastepwn/analyzers/tests/epickeyanalyzer_test.py 30 31 96.77%
Totals Coverage Status
Change from base Build 164: 0.7%
Covered Lines: 1081
Relevant Lines: 1700

💛 - Coveralls

self.assertTrue(self.analyzer.match(self.paste))

# part of a sentence
self.paste.body = "Look it's FORTNITE! UGCTH-FH42S-OH98G-QHFZA"
Copy link
Owner

Choose a reason for hiding this comment

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

Nice one 😆

@d-Rickyy-b d-Rickyy-b merged commit 320b6a9 into d-Rickyy-b:master Oct 7, 2019
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.

3 participants