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

Function valid_version

core/control-panel/impl/src/models/registry_entry.rs:853–863  ·  view source on GitHub ↗
(#[case] version: &str)

Source from the content-addressed store, hash-verified

851 #[case::rc_version(&"1.0.0-rc.1")]
852 #[case::alpha(&"1.0.0-alpha.1")]
853 fn valid_version(#[case] version: &str) {
854 let mut entry = create_registry_entry();
855 entry.value = RegistryValue::WasmModule(WasmModuleRegistryValue {
856 wasm_artifact_id: *Uuid::new_v4().as_bytes(),
857 version: version.to_string(),
858 dependencies: Vec::new(),
859 module_extra_chunks: None,
860 });
861
862 entry.validate().unwrap();
863 }
864
865 #[test]
866 fn invalid_dependencies() {

Callers

nothing calls this directly

Calls 2

create_registry_entryFunction · 0.85
validateMethod · 0.45

Tested by

no test coverage detected