MCPcopy Create free account
hub / github.com/dfinity/orbit / validate

Method validate

core/control-panel/impl/src/models/artifact.rs:124–128  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

122
123impl ModelValidator<ArtifactError> for Artifact {
124 fn validate(&self) -> ModelValidatorResult<ArtifactError> {
125 validate_unique_hash(self.id(), &self.hash)?;
126
127 Ok(())
128 }
129}
130
131#[cfg(test)]

Callers

nothing calls this directly

Calls 2

validate_unique_hashFunction · 0.85
idMethod · 0.80

Tested by

no test coverage detected