Skip to content

Multi-line method signature breaks positioning of coverage markers #61

@gjsjohnmurray

Description

@gjsjohnmurray

Below is a screenshot of coverage information for the %IPM.Repo.Definition class in the https://github.com/intersystems/ipm project, presented by the new v2 release of my InterSystems Testing Manager extension which leverages the TestCoverage package.

Image

Note how the 4 method arguments are each put on their own line in this class definition. Consequently the green coverage indicators on lines 128, 130 and 132 are misplaced. By adding 4 to these numbers we can make sense of them (lines 132, 134 and 136). Similarly the red uncovered indicators on 133-135 actually belong to lines 137-139.

TestCoverage's own display of this class's coverage through the TestCoverage.UI.ResultDetailViewer.cls webpage doesn't show the problem because it presents a UDL export of the class definition that renders method signatures on a single line:

Image

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