Skip to content

Test all public methods of classes (mainly pdf.Model) #270

Open

Description

@lukasheinrich

Description

In https://github.com/diana-hep/pyhf/pull/269 we have seen a decrease in coverage because we relied on nested calls to methods to traverse the calls. A refactoring of the internal code then left some methods uncovered.

We should make sure that all public methods of classes (mainly pyhf.pdf.Model) are tested explicitly or remote them to internal methods by prepending a underscore. Otherwise refactorings might break users relying on these methods

(somewhat related to semantic versioning )

Classes

  • pyhf.pdf.Model
    • expected_auxdata
    • expected_actualdata
    • expected_sample
    • expected_data
    • constraint_logpdf
    • logpdf
    • pdf

Relevant Issues and Pull Requests

If there are relevant issues and pull requests for this feature please list and link them here

Activity

  1. changed the title [-]Test all public methods of classes[/-] [+]Test all public methods of classes (mainly pdf.Model)[/+] on Sep 18, 2018
  2. kratsg commented on Nov 6, 2019

    @kratsg
    Contributor

    #611 will address this somewhat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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