Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fully cover most files #545

Closed
1 of 4 tasks
edreamleo opened this issue Nov 27, 2022 · 0 comments
Closed
1 of 4 tasks

Fully cover most files #545

edreamleo opened this issue Nov 27, 2022 · 0 comments
Labels
cleanup Code quality issues. Linter, type checking, Python 2-ism, Pythonic, etc

Comments

@edreamleo
Copy link
Contributor

edreamleo commented Nov 27, 2022

pytest reports good coverage for most files, but see below!

Module statements missing excluded coverage
ropetest\refactor\extracttest.py 1070 20 0 98%
ropetest\refactor\patchedasttest.py 1018 98 0 90%
ropetest\projecttest.py 924 36 0 96%
ropetest\pycoretest.py 860 18 0 98%
ropetest\refactor\importutilstest.py 830 0 0 100%
ropetest\contrib\codeassisttest.py 798 4 0 99%
rope\refactor\patchedast.py 788 95 0 88%
rope\refactor\extract.py 767 36 0 95%
ropetest\advanced_oi_test.py 570 6 0 99%
ropetest\refactor_init_.py 557 1 0 99%
rope\base\builtins.py 549 40 0 93%
ropetest\codeanalyzetest.py 545 22 0 96%
ropetest\refactor\renametest.py 544 8 0 99%
rope\refactor\move.py 503 24 0 95%
ropetest\refactor\movetest.py 498 0 0 100%
rope\base\pyobjectsdef.py 490 23 0 95%
ropetest\refactor\inlinetest.py 472 3 0 99%
rope\base\worder.py 451 17 0 96%
rope\refactor\inline.py 409 28 0 93%
rope\contrib\codeassist.py 407 59 0 86%
rope\refactor\importutils\module_imports.py 404 8 0 98%
ropetest\builtinstest.py 370 0 0 100%
ropetest\historytest.py 336 6 0 98%
rope\base\project.py 310 30 0 90%
rope\base\codeanalyze.py 287 5 0 98%
ropetest\pyscopestest.py 282 0 0 100%
rope\contrib\generate.py 278 5 0 98%
rope\base\change.py 276 31 0 89%
rope\contrib\autoimport\sqlite.py 263 36 0 86%
rope\refactor\importutils\actions.py 260 4 0 98%
rope\base\pyscopes.py 258 8 0 97%
rope\refactor\similarfinder.py 258 13 0 95%
rope\refactor\occurrences.py 252 9 0 96%
ropetest\refactor\change_signature_test.py 247 8 0 97%
rope\base\evaluate.py 246 15 0 94%
rope\base\oi\type_hinting\evaluate.py 230 47 0 80%
rope\base\pycore.py 227 20 0 91%
ropetest\objectinfertest.py 223 0 0 100%
ropetest\contrib\generatetest.py 217 0 0 100%
ropetest\refactor\similarfindertest.py 217 0 0 100%
rope\refactor\importutils_init_.py 216 23 0 89%
rope\refactor\change_signature.py 214 19 0 91%
rope\base\fscommands.py 204 73 0 64%
rope\base\oi\transform.py 197 16 0 92%
rope\base\pyobjects.py 196 12 0 94%
rope\base\oi\objectinfo.py 178 15 0 92%
rope\base\oi\runmod.py 177 107 0 40%
rope\base\resourceobserver.py 170 5 0 97%
rope\refactor\functionutils.py 169 8 0 95%
rope\base\oi\soi.py 167 7 0 96%
rope\refactor\restructure.py 164 27 0 84%
rope\base\history.py 157 6 0 96%
rope\refactor\encapsulate_field.py 150 2 0 99%
ropetest\type_hinting_test.py 150 6 0 96%
rope\base\oi\doa.py 147 32 0 78%
rope\base\resources.py 146 11 0 92%
rope\contrib\autoimport\pickle.py 145 116 0 20%
rope\contrib\fixsyntax.py 142 11 0 92%
rope\base\taskhandle.py 140 26 0 81%
ropetest\refactor\restructuretest.py 137 0 0 100%
rope\refactor\usefunction.py 135 6 0 96%
ropetest\contrib\autoimporttest.py 135 0 0 100%
rope\base\pynames.py 127 1 0 99%
rope\refactor\suites.py 126 9 0 93%
rope\refactor\wildcards.py 126 8 0 94%
rope\refactor\importutils\importinfo.py 125 14 0 89%
rope\base\oi\objectdb.py 124 21 0 83%
ropetest\runmodtest.py 120 0 0 100%
rope\refactor\rename.py 118 13 0 89%
ropetest\objectdbtest.py 113 1 0 99%
rope\base\oi\soa.py 104 0 0 100%
ropetest\refactor\suitestest.py 103 0 0 100%
rope\base\oi\type_hinting\utils.py 89 8 0 91%
ropetest\contrib\findittest.py 89 0 0 100%
ropetest\refactor\usefunctiontest.py 89 5 0 94%
ropetest\reprtest.py 88 1 0 99%
rope\base\oi\memorydb.py 84 12 0 86%
rope\contrib\autoimport\utils.py 83 7 0 92%
rope\refactor\introduce_factory.py 82 0 0 100%
rope\base\prefs.py 79 2 0 97%
rope\base\utils_init_.py 79 8 0 90%
rope\contrib\autoimport\parse.py 76 7 0 91%
rope\contrib\autoimport\defs.py 75 0 0 100%
rope\base\arguments.py 71 4 0 94%
rope\contrib\findit.py 68 3 0 96%
rope\base\oi\type_hinting\providers\docstrings.py 67 2 0 97%
rope\refactor\sourceutils.py 66 0 0 100%
rope\base\libutils.py 64 3 0 95%
rope\refactor\method_object.py 64 2 0 97%
ropetest\testutils.py 62 10 0 84%
rope\base\ast.py 53 1 0 98%
rope\base\utils\datastructures.py 53 22 0 58%
rope\contrib\autoimport\models.py 50 0 0 100%
rope\refactor\introduce_parameter.py 48 0 0 100%
ropetest\doatest.py 48 0 0 100%
ropetest\refactor\multiprojecttest.py 48 0 0 100%
ropetest\simplifytest.py 47 0 0 100%
rope\contrib\finderrors.py 46 1 0 98%
rope\refactor\multiproject.py 44 2 0 95%
rope\base\stdmods.py 41 9 0 78%
rope\base\astutils.py 40 2 0 95%
ropetest\contrib\fixmodnamestest.py 40 0 0 100%
rope\base\pynamesdef.py 39 2 0 95%
ropetest_init_.py 39 20 0 49%
ropetest\contrib\finderrorstest.py 36 0 0 100%
rope\contrib\fixmodnames.py 35 0 0 100%
ropetest\contrib\autoimport\conftest.py 34 0 0 100%
rope\base\oi\type_hinting\providers\inheritance.py 32 0 0 100%
rope\base\simplify.py 32 0 0 100%
rope\refactor\localtofield.py 31 3 0 90%
rope\base\oi\type_hinting\factory.py 30 0 0 100%
ropetest\contrib\autoimport\modeltest.py 28 0 0 100%
rope\base\oi\type_hinting\providers\numpydocstrings.py 27 13 0 52%
rope\base\oi\type_hinting\providers\composite.py 25 0 0 100%
rope\refactor\topackage.py 25 0 0 100%
ropetest\contrib\autoimport\utilstest.py 25 0 0 100%
ropetest\contrib\changestacktest.py 25 0 0 100%
rope\contrib\changestack.py 23 0 0 100%
ropetest\contrib_init_.py 23 12 0 48%
rope\base\oi\type_hinting\providers\pep0484_type_comments.py 21 0 0 100%
rope\base\exceptions.py 20 3 0 85%
rope_init_.py 13 8 0 38%
rope\base\utils\pycompat.py 13 1 0 92%
rope\base\oi\type_hinting\providers\interfaces.py 11 3 0 73%
ropetest\contrib\autoimport\parsetest.py 11 0 0 100%
rope\base\oi\type_hinting\interfaces.py 9 4 0 56%
rope\base\oi\type_hinting\resolvers\composite.py 9 0 0 100%
rope\base\oi\type_hinting\resolvers\types.py 8 0 0 100%
rope\contrib\autoimport_init_.py 4 0 0 100%
rope\base\oi\type_hinting\resolvers\interfaces.py 3 1 0 67%
rope\refactor_init_.py 3 0 0 100%
rope\base_init_.py 1 0 0 100%
rope\base\oi_init_.py 0 0 0 100%
rope\base\oi\type_hinting_init_.py 0 0 0 100%
rope\base\oi\type_hinting\providers_init_.py 0 0 0 100%
rope\base\oi\type_hinting\resolvers_init_.py 0 0 0 100%
rope\contrib_init_.py 0 0 0 100%
Total 25881 1559 0 94%
  • Mark harmless "uncovered" statements with #pragma no cover.
  • Remove python2-only statements.
  • Create unit tests for all other missing statements.
@edreamleo edreamleo added the bug Unexpected or incorrect user-visible behavior label Nov 27, 2022
@lieryan lieryan added cleanup Code quality issues. Linter, type checking, Python 2-ism, Pythonic, etc and removed bug Unexpected or incorrect user-visible behavior labels Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Code quality issues. Linter, type checking, Python 2-ism, Pythonic, etc
Projects
None yet
Development

No branches or pull requests

2 participants