Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

OrestisKal/pythonping-OK

Open more actions menu
 
 

Repository files navigation

Report for Assignment 1 resit

Project chosen

Name: pythonping

URL: https://github.com/alessandromaggio/pythonping.git

Number of lines of code and the tool used to count it: The number of lines of code (nloc) is 1023, and the tool used to count the nloc was Lizard.

Programming language: Python

Coverage measurement with existing tool

The tool used to measure the coverage was Coverage.py and it was executed by running the command 'sumo coverage run -m unittest discover test' in the terminal.

Coverage before

Coverage improvement

Individual tests

Function 1

Link to commit showing newly added test case to improve coverage: https://github.com/OrestisKal/pythonping-OK/commit/b5192759d4847b0fdbaf91853f532d52dd3f903f

Function 1 coverage, before coverage improvement
Function1 cov before
Function 1 coverage, after coverage improvement
Function1 cov 100% The coverage improvement is an increase of 100%. Initially, none of the branches were executed, but after creating a new test case that targeted the three branches, including the invisible 'else' branch, each branch was executed. Thus, a 100% branch coverage.

Function 2

Link to commit showing additions to the existing test case to improve coverage: https://github.com/OrestisKal/pythonping-OK/commit/5d51b73c06640458bb4d4b9a5cf18858d70bf81c

Function 2 coverage, before coverage improvement
Function2 cov before
Function 2 coverage, after coverage improvement
Function2 cov 100%

The coverage improvement is an increase of 100%. To begin with, the branch coverage of the function was 0%, despite having an existing test case. After enhancing the existing test case to call on the function, both branches including the invisible 'else' branch were executed. Thus, a 100% branch coverage for the function.

Overall

Overall coverage before

Coverage before

Overall coverage after

Coverage after

About

A simple way to ping in Python

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.