pace-rs / pace

Mindful Time Tracking: Simplify Your Focus and Boost Productivity Effortlessly.
https://pace.cli.rs
GNU Affero General Public License v3.0
20 stars 0 forks source link

test(storage): implement in-memory storage #28

Closed simonsan closed 6 months ago

simonsan commented 6 months ago

In-memory works as a cache backend for a Toml storage and for easier testing of the storage implementations. A Toml file is essentially just parsed an kept in-memory, every change is done in that storage then and at the end of the operations it is being synced back to disk.

This is useful, because we can test our storage implementations more easily by just working with the in-memory storage and we can easily spit out a backup file at every stage, if we want to.