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

Method validate

core/control-panel/impl/src/models/registry_entry.rs:371–375  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

369
370impl ModelValidator<RegistryError> for WasmModuleRegistryValue {
371 fn validate(&self) -> ModelValidatorResult<RegistryError> {
372 validate_wasm_module_version(&self.version)?;
373
374 Ok(())
375 }
376}
377
378fn validate_chars(field: &str, content: &str) -> ModelValidatorResult<RegistryError> {

Callers 2

valid_versionFunction · 0.45
valid_dependenciesFunction · 0.45

Calls 11

validate_namespaceFunction · 0.85
validate_categoriesFunction · 0.85
validate_metadataFunction · 0.85
validate_timestampsFunction · 0.85
validate_is_of_same_kindFunction · 0.85
validate_dependenciesFunction · 0.85
validate_nameFunction · 0.70
validate_descriptionFunction · 0.70
validate_tagsFunction · 0.70
validate_uniquenessFunction · 0.70

Tested by

no test coverage detected