kytos-ng / telemetry_int

Kytos Telemetry Napp
MIT License
0 stars 2 forks source link

chore: increase overall unit test cov to 90% + #77

Closed viniarck closed 3 months ago

viniarck commented 5 months ago

Currently the overall unit test is at 85%, there are some modules below that could be better covered, the most critical paths have got covered, but it'd be great to also improve this part in a next opportunity:

---------- coverage: platform linux, python 3.9.18-final-0 -----------
Name                                        Stmts   Miss  Cover
---------------------------------------------------------------
__init__.py                                     0      0   100%
exceptions.py                                  31      6    81%
kytos_api_helper.py                            76     25    67%
main.py                                       209     95    55%
managers/__init__.py                            0      0   100%
managers/flow_builder.py                      128      3    98%
managers/int.py                               254     80    69%
proxy_port.py                                  24      3    88%
settings.py                                    12      0   100%
tests/conftest.py                              18      0   100%
tests/unit/test_flow_builder_inter_evc.py      60      0   100%
tests/unit/test_flow_builder_intra_evc.py     105      0   100%
tests/unit/test_int_manager.py                219      0   100%
tests/unit/test_kytos_api_helper.py            53      0   100%
tests/unit/test_main.py                       154      0   100%
tests/unit/test_utils.py                       45      0   100%
utils.py                                       62      9    85%
---------------------------------------------------------------
TOTAL                                        1450    221    85%

============================================================================ 47 passed, 36 warnings in 1.47s =============================================================================