Skip to content

Improve test coverage for algorithms in betweenness_subset.py #6033

@MridulS

Description

@MridulS

Currently we don't have full coverage for algorithms in betweenness_subset.py. Code blocks which are highlighted with red at codcov https://app.codecov.io/gh/networkx/networkx/blob/main/networkx/algorithms/centrality/betweenness_subset.py don't have corresponding tests. The tests should be added in https://github.com/networkx/networkx/blob/main/networkx/algorithms/centrality/tests/test_betweenness_centrality_subset.py

Current Behavior

We don't test all the paths the code can take us.

Expected Behavior

We should be testing everything so there aren't any surprises.

Steps to Reproduce

Visit https://app.codecov.io/gh/networkx/networkx/blob/main/networkx/algorithms/centrality/betweenness_subset.py

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions