summaryrefslogtreecommitdiff
path: root/tests/src/hashmap_main.rs
diff options
context:
space:
mode:
authorAymeric Fromherz2024-05-24 15:02:26 +0200
committerAymeric Fromherz2024-05-24 15:02:26 +0200
commit4d33ea68ca1ebfca35b7d7332f63b74dd3c06838 (patch)
tree838da53ae7e5be27e1dde684d0354a5ce2a1fd99 /tests/src/hashmap_main.rs
parentac5f261997079002a782217ebf0c854e31bb880d (diff)
parent3c8ea6df20f92be9c341bbfb748f65d6c598fead (diff)
Merge remote-tracking branch 'origin/main' into afromher_debug
Diffstat (limited to 'tests/src/hashmap_main.rs')
-rw-r--r--tests/src/hashmap_main.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/src/hashmap_main.rs b/tests/src/hashmap_main.rs
new file mode 100644
index 00000000..45dfa6e2
--- /dev/null
+++ b/tests/src/hashmap_main.rs
@@ -0,0 +1,16 @@
+mod hashmap;
+mod hashmap_utils;
+
+use crate::hashmap::*;
+use crate::hashmap_utils::*;
+
+pub fn insert_on_disk(key: Key, value: u64) {
+ // Deserialize
+ let mut hm = deserialize();
+ // Update
+ hm.insert(key, value);
+ // Serialize
+ serialize(hm);
+}
+
+pub fn main() {}