refactor(test): improve hashmap test

This commit is contained in:
2026-03-16 23:11:15 +01:00
parent a56d5b396b
commit 21806e77a7
2 changed files with 8 additions and 4 deletions
+2
View File
@@ -100,6 +100,8 @@ void hm_free_bucket(bucket_s *bucket);
* If the key already exists, the old value is freed (if free_value_fn is provided)
* and replaced with the new value. If the key doesn't exist, a new entry is created.
* Both key and value are copied into the hashmap using memcpy.
* The caller must pass buffers that are readable for at least key_size/value_size bytes.
* For C-string keys, use a fixed-size key buffer (or set key_size to the exact copied size).
*
* @param[in] hashmap Pointer to the hash map.
* @param[in] key Pointer to the key to insert (will be copied, must not be NULL).