scikit-hep / pyhf

pure-Python HistFactory implementation with tensors and autodiff
https://pyhf.readthedocs.io/
Apache License 2.0
283 stars 83 forks source link

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

Open lukasheinrich opened 6 years ago

lukasheinrich commented 6 years ago

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

Relevant Issues and Pull Requests

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

kratsg commented 5 years ago

611 will address this somewhat.