Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Preserve model namespace uniqueness coverage

Manav Rathic788373dd9f7
diff --git a/rust/crates/ml/src/models.rs b/rust/crates/ml/src/models.rs
index ca613edd95..704ad53308 100644
--- a/rust/crates/ml/src/models.rs
+++ b/rust/crates/ml/src/models.rs
@@ -178,6 +178,14 @@ mod tests {
}
}
+ #[test]
+ fn model_namespaces_are_unique() {
+ let mut namespaces = HashSet::new();
+ for model in Model::ALL {
+ assert!(namespaces.insert(model.namespace()));
+ }
+ }
+
#[test]
fn model_paths_are_addressable_by_model() {
let mut paths = ModelPaths {