Skip to content

File collisions in coverage report html #584

Closed
@nedbat

Description

@nedbat

Originally reported by Arthur Goldberg (Bitbucket: arthurgoldberg, GitHub: Unknown)


The filename map can create collisions. See the screenshot. coverage_colliding_files.png

In the example, an attempt to view "wc_sim/bug/a/b_c.py" actually views "wc_sim/bug/a_b/c.py".

To resolve this, instead of replacing directory separators with '_', use a perfect hash to generate a unique integer for each module. The pathname to the module can be appended to the perfect hash if it is important to see the pathname in the html filename.

Arthur


Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions