Skip to content

Coverage for S7 methods #618

@frederikfabriciusbjerre

Description

covr does not attribute coverage to S7 methods defined via the assignment form
S7::method(generic, class) <- function(...) { ... }. The file shows only the
generic’s S7_dispatch() line as “relevant,” so method bodies are invisible to
coverage.

To see an example of this, I refer to my package coverage report

https://app.codecov.io/gh/frederikfabriciusbjerre/caugi/blob/main/R%2Fas_caugi.R

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