Skip to content

Increase test coverage in core.py #6115

@Mjh9122

Description

@Mjh9122

Some untested conditionals in https://app.codecov.io/gh/networkx/networkx/blob/main/networkx/algorithms/core.py and I'd like to add them.

The tests will be added in https://github.com/networkx/networkx/blob/main/networkx/algorithms/tests/test_core.py

Current Behavior:
Not testing exceptions that are raised

Expected Behavior, test all conditions

Steps to reproduce, Look at coverage link above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions