abhisharma404 / vault

swiss army knife for hackers
https://abhisharma404.github.io/vault
MIT License
513 stars 95 forks source link

Increasing code coverage #54

Open abhisharma404 opened 5 years ago

abhisharma404 commented 5 years ago

We need to increase our code coverage, for initial we can start off by writing test cases for the following two simple functions :

  1. check_url(url: str) in vault.py
  2. check_ip(ip: str) in vault.py
FrancescoPenasa commented 5 years ago

I would like to work on this. I've already done a simple test for the check_url(str) in a new branch "testing-vault.py" in the repository I forked.

abhisharma404 commented 5 years ago

@FrancescoPenasa Sure. Go ahead :)

sap143 commented 4 years ago

@abhisharma404 I want to do this one .

mzfr commented 4 years ago

@sap143 Sure. Go ahead

sap143 commented 4 years ago

I am not getting what exactly I have to do .please guide me

mzfr commented 4 years ago

@sap143 you can just google that. Increasing code coverage means writing test for code. Ex: https://developer.ibm.com/recipes/tutorials/testing-and-code-coverage-with-python/

This is just one example you can find more online.