schema_coverage#
- lsst.images.tests.schema_coverage(directory, *, package='lsst.images')#
Report what the committed fixtures exercise of each schema.
- Parameters:
directory (
Path) – Directory holding the fixture tree.package (
str, default:'lsst.images') – Package whose schemas to report on; seeavailable_schema_classes.
- Returns:
Coverage keyed by schema name and fixture-filename version.
- Return type:
Notes
Every non-retired fixture in the tree contributes, whatever schema it is a fixture of: coverage is credited to the schema that owns each stamped subtree, so a sub-model embedded by several containers is credited by all of them. Retired fixtures are excluded because they do not validate.
This reports reach, not judgement. A path counted as expressed only proves some fixture put a value there, not that the value is interesting; what pins payload data is described in Test fixtures.