pyTenable icon indicating copy to clipboard operation
pyTenable copied to clipboard

improve line coverage to 100 percent

Open alpesh-te opened this issue 3 years ago • 1 comments

Description

This PR contains code-changes for IN-613 - Enhanced Test Coverage for Access Group.

Module : Tenable\io\access_groups.py Statements covered by Test-cases (%) : 100%

Added test cases to cover maximum statement of Access Group module. Earlier test cases covered only 95% statement of Access Group. Now 100% statement is covered.

Type of change

Please delete options that are not relevant.

  • [ ] Bug fix (non-breaking change which fixes an issue)
  • [ ] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • [ ] This change requires a documentation update

How Has This Been Tested?

To test code-changes of this PR, I have run testcases of pyTenable\tests\io\access_groups.py. All testcases of this file working fine and getting passed.

Test Configuration:

  • Python Version(s) Tested:
  • Tenable.sc version (if necessary):

Checklist:

  • [ ] My code follows the style guidelines of this project
  • [ ] I have performed a self-review of my own code
  • [ ] I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation
  • [ ] My changes generate no new warnings
  • [ ] I have added tests that prove my fix is effective or that my feature works
  • [ ] New and existing unit tests pass locally with my changes
  • [ ] Any dependent changes have been merged and published in downstream modules

alpesh-te avatar May 17 '22 05:05 alpesh-te

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

sonarqubecloud[bot] avatar Jun 21 '22 05:06 sonarqubecloud[bot]

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

sonarqubecloud[bot] avatar Sep 19 '22 12:09 sonarqubecloud[bot]