Name: Ismail Marghich
URL: https://github.com/IsmailMarghich/pendulum
Number of lines of code and the tool used to count it:
I used lizard and there was a total of 20441 lines of code.
Programming language: Python
I used coverage.py to measure the branch coverage of the project, since the project used pytest I used these commands:
coverage run --branch -m pytest
coverage report
Initial coverage results:
Commit: https://github.com/IsmailMarghich/pendulum/commit/c3040be57a4017c596395710bd06fb0374f76780
Before charges:
After changes:
The coverage has been improved by 2 percentage points, I have achieved this by adding another test case for the add_duration method, which allows you to add Duration objects together with the '+' operator. Specifically I added a test case where a run time error should be raised if you try add a date and a datetime object together as they are not compatible.
URL: https://github.com/IsmailMarghich/pendulum/commit/bb2bd87d3cde8e877267c66ee055fc3ef3083de6
Before changes:
After changes:
The coverage has been improved by 1 percentage points, I have achieved this by testing two string converstion methods which you can use on datetime objects. It seems this might have been forgotten by the developers, I made sure the methods return the correct output for a given input.