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

Add tests to improve code coverage. #98

Open
kasei opened this issue May 11, 2016 · 0 comments
Open

Add tests to improve code coverage. #98

kasei opened this issue May 11, 2016 · 0 comments

Comments

@kasei
Copy link
Owner

kasei commented May 11, 2016

Code coverage generated by Devel::Cover with something like this:

perl Makefile.PL && make
HARNESS_PERL_SWITCHES=-MDevel::Cover=+ignore,Test make test
cover # generates cover_db/coverage.html

will reveal many places that code in Attean is not touched by the test suite. I've been trying to improve the "sub" coverage for all files to 100%. Finding a row in the coverage results where the cell in the "sub" column is not "100.0" will reveal places where not all subs are hit by the test suite. Clicking on that cell in the results table will reveal which subs (and their line numbers in the file) are of interest. Try to add a new test case that tests the expected results of the function.

Some examples of recent additions:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant