Skip to content

Instantly share code, notes, and snippets.

@ibnesayeed
Created August 26, 2020 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ibnesayeed/0453f8e3f2dba66db9d919deb4e7ea81 to your computer and use it in GitHub Desktop.
Save ibnesayeed/0453f8e3f2dba66db9d919deb4e7ea81 to your computer and use it in GitHub Desktop.
IPWB Test Coverage Report
/tmp/ipwb$ coverage run -m pytest
=================================== test session starts ===================================
platform linux -- Python 3.8.2, pytest-6.0.1, py-1.9.0, pluggy-0.13.1
rootdir: /tmp/ipwb, configfile: setup.cfg
plugins: flake8-1.0.6, cov-2.10.1
collected 121 items                                                                                

tests/test_backends.py .....                                                        [  4%]
tests/test_compile_target_uri.py ..                                                 [  5%]
tests/test_error_handler.py ..                                                      [  7%]
tests/test_indexing.py ..                                                           [  9%]
tests/test_ipfs_client.py .....                                                     [ 13%]
tests/test_memento.py .........                                                     [ 20%]
tests/test_nodeToNode.py ss                                                         [ 22%]
tests/test_randomized_add.py .                                                      [ 23%]
tests/test_replay.py ...........ssssssssssssss...................................   [ 72%]
tests/test_util.py .................................                                [100%]

======================= 105 passed, 16 skipped in 139.88s (0:02:19) =======================
/tmp/ipwb$ coverage report -m
Name                    Stmts   Miss Branch BrPart  Cover   Missing
-------------------------------------------------------------------
docs/__init__.py            0      0      0      0   100%
ipwb/__init__.py            1      0      0      0   100%
ipwb/__main__.py           79     79     16      0     0%   1-175
ipwb/backends.py           47      3     16      1    94%   55-59, 93->96, 96
ipwb/error_handler.py      16      0      2      0   100%
ipwb/exceptions.py          1      0      0      0   100%
ipwb/indexer.py           253    108     76     18    54%   59->90, 62->64, 64->65, 65, 67->68, 68, 73->74, 74-75, 77-90, 94-103, 107-111, 120->123, 128->129, 129-143, 145->146, 146-149, 163-164, 174->177, 177-185, 189, 215->218, 218, 236-238, 245->254, 246->247, 247-248, 249->250, 250-260, 266->267, 267-270, 288->289, 289-291, 315-326, 331-335, 339->341, 341-342, 357, 361, 372-382, 386->387, 387, 388->391, 391-392, 396-397
ipwb/replay.py            654    548    216      2    13%   74, 79-81, 85, 91-119, 124-127, 136->137, 137, 138->142, 142-160, 165-169, 174-204, 218-239, 253-274, 279-288, 293-329, 334-356, 361-386, 390-439, 443-452, 457-496, 501-538, 543-547, 552-579, 585-597, 601-764, 772-782, 787, 791-829, 833-853, 857-881, 886-896, 900-937, 941-991, 995-1007, 1011-1030, 1035-1045, 1049-1072
ipwb/settings.py            5      5      0      0     0%   3-35
ipwb/util.py              202    112     44      2    41%   96, 100-114, 119, 123, 129-133, 139->140, 140, 141->142, 142, 148-149, 153-155, 159-165, 179-183, 187-189, 209-217, 224-234, 240-246, 250-256, 260-269, 273-280, 284-289, 293-301, 306-316, 320-324, 328-338
setup.py                    6      6      0      0     0%   3-10
-------------------------------------------------------------------
TOTAL                    1264    861    370     23    29%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment