Skip to content

Timmermans13/Python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Report for Assignment 1

Project chosen

Name: Python

URL: https://github.com/geekcomputers/Python

Number of lines of code and the tool used to count it: <31401>

Programming language:

Coverage measurement

Existing tool

<Coverage.py>

Your own coverage tool

BinaryExponentiation

https://github.com/Timmermans13/Python/blob/Francis-Branch/power_of_n.py

is_balanced

https://github.com/Timmermans13/Python/blob/Francis-Branch/balance_parenthesis.py

Coverage improvement

Individual tests

<Test 1: pow-test-one>

https://github.com/Timmermans13/Python/blob/Francis-Branch/power_of_n.py

<The test I have provided tests the with the branch where n is equal to 0 (pow-case-1). This was the only branch that was not covered, hence improving the branch coverage to 100%>

<Test 2: bal_case-two-test>

https://github.com/Timmermans13/Python/blob/Francis-Branch/balance_parenthesis.py

<The test I have provided tests the with the branch where the string empty (bal-case-2). This was the only branch that was not covered, hence improving the branch coverage to 100%>

Overall

Old cov:

Francis:

New cov:

Francis:

Statement of individual contributions

Francis: I have made coverage measurements of two functions and I have addedone test case for each function to improve the coverage.

About

My Python Examples

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 80.2%
  • Jupyter Notebook 18.7%
  • Tcl 0.7%
  • HTML 0.3%
  • Java 0.1%
  • Makefile 0.0%