CockpitTestBundleSummary constructor
CockpitTestBundleSummary({})
Creates a CockpitTestBundleSummary.
Implementation
CockpitTestBundleSummary({
required this.path,
required this.manifestSha256,
required this.artifactCount,
}) {
CockpitTestValueReader.string(path, r'$.path');
if (!RegExp(r'^[a-f0-9]{64}$').hasMatch(manifestSha256) ||
artifactCount < 0) {
throw const FormatException('Invalid bundle summary.');
}
}