From aa1ff02d6dbda51ad2f905bd4361279f396b79d3 Mon Sep 17 00:00:00 2001 From: davidemazzocchi Date: Thu, 16 Oct 2025 16:02:01 +0200 Subject: [PATCH] chore: update comments using upsert instead of insert --- 01.workspace/heave/src/str/catalog.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/01.workspace/heave/src/str/catalog.rs b/01.workspace/heave/src/str/catalog.rs index ca81986..f0f98f9 100644 --- a/01.workspace/heave/src/str/catalog.rs +++ b/01.workspace/heave/src/str/catalog.rs @@ -292,10 +292,10 @@ mod tests { std::fs::remove_dir_all(invalid_path).unwrap(); } - // ## 'insert()' & 'insert_many()' + // ## 'upsert()' & 'insert_many()' #[test] fn insert_should_add_single_entity_as_new() { - // 'insert()': Should add a single entity to the 'items' map with 'EntityState::New'. + // 'upsert()': Should add a single entity to the 'items' map with 'EntityState::New'. let mut catalog = Catalog::new("dummy.db"); let item = Item { id: "item-123".to_string(), @@ -316,7 +316,7 @@ mod tests { #[test] fn insert_should_overwrite_existing_entity() { - // 'insert()': Should overwrite an existing entity with the same ID. + // 'upsert()': Should overwrite an existing entity with the same ID. let mut catalog = Catalog::new("dummy.db"); let item1 = Item { id: "item-123".to_string(),