Skip to content

Improve test coverage for line graph generators #6028

@MridulS

Description

@MridulS

Currently we don't have full coverage for the line graphs generators. Code blocks which are highlighted with red at codcov https://app.codecov.io/gh/networkx/networkx/blob/main/networkx/generators/line.py don't have corresponding tests. The tests should be added in https://github.com/networkx/networkx/blob/main/networkx/generators/tests/test_line.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/generators/line.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