Skip to main content

judge.BaseInputs

judge.BaseInputs(unit, bundle, original, module_sha256, source_dir)

What the repository recorded about a unit at a commit.

Attributes

Name Type Description
unit Unit The unit as loaded at the commit: its evaluations, unit tests and consumers.
bundle str The regeneration bundle built from the commit.
original str The text of the unit’s module at the commit.
module_sha256 str The SHA-256 of that module, as bytes.
source_dir str The source_dir of the architecture at the commit.

Examples

from spotregen.judge import BaseInputs

print([field for field in BaseInputs.__dataclass_fields__])
['unit', 'bundle', 'original', 'module_sha256', 'source_dir']