summaryrefslogtreecommitdiffstats
path: root/libimagstore
AgeCommit message (Collapse)Author
2016-11-14Move tests to new moduleMatthias Beyer
2016-11-14We dont need to clone() hereMatthias Beyer
2016-11-14Add helper trait for extracting from Array/TableMatthias Beyer
2016-11-14Remove unreachable statementsMatthias Beyer
2016-11-14Refactor unpacking into helper fnMatthias Beyer
2016-11-14Refactor to use try!() instead of match{}ingMatthias Beyer
2016-11-14Prettify codebaseMatthias Beyer
2016-11-14Use helper fns to prettify error buildingMatthias Beyer
2016-11-14Use default parameters from underlying functionsMatthias Beyer
2016-11-14Add EntryHeader::delete_with_sep()Matthias Beyer
2016-11-14Minify EntryHeader codeMatthias Beyer
2016-11-14Extract TOML extension to own moduleMatthias Beyer
2016-11-03impl PartialEq for EntryMatthias Beyer
2016-11-03We can derive PartialEq for EntryHeaderMatthias Beyer
2016-10-31Merge pull request #656 from matthiasbeyer/cargo-rustc-codegen-unitsMatthias Beyer
Cargo rustc codegen units
2016-10-31Impl PartialEq for StoreIdMatthias Beyer
2016-10-24libimagstore/Cargo.toml: Update dependenciesMatthias Beyer
2016-10-24Add codegen-units = 2 in ./libimagstore/Cargo.tomlMatthias Beyer
2016-10-20Fix: Cargo.toml does not know "website", but "homepage"Matthias Beyer
2016-10-19Merge pull request #815 from matthiasbeyer/release-prepMatthias Beyer
Release preparation things
2016-10-18Merge pull request #816 from matthiasbeyer/libimagstore/test-storeid-name-fixMatthias Beyer
Fix test StoreId name
2016-10-18Fix test StoreId nameMatthias Beyer
The name of the storeid was duplicated, which caused the tests to fail from time to time. This patch fixes the name of the entry which is used to test.
2016-10-18Add meta-info in libimagstore/Cargo.tomlMatthias Beyer
2016-10-15Add missing "use"Matthias Beyer
2016-10-15Refactor iflet into and_then().or_else()Matthias Beyer
2016-10-15Simplify lineMatthias Beyer
2016-10-15Reimplement StoreId::to_str() to remove unwrap()Matthias Beyer
2016-10-15Remove unwrap()s in file abstraction codeMatthias Beyer
2016-10-15Simplify hashmap fetching and error constructionMatthias Beyer
2016-10-15Use try!() instead of unwrapping errorsMatthias Beyer
2016-10-13Create symlinks to documentation files in libimag*/README.mdMatthias Beyer
2016-10-13Move all libimag*/README.md to doc/src/05100-*Matthias Beyer
2016-10-12Merge branch 'libimagstore/store-tests' into ↵Matthias Beyer
libimagstore/store-tests-integration
2016-10-12Merge branch 'master' into libimagstore/store-tests-integrationMatthias Beyer
On master, we changed the Store::update() function to do nothing more than calling Store::_update() and wrapping an error. On the libimagstore/store-tests branch, we modified the Store::_update() function to contain an additional flag in the parameters, whether the File-Lock-Entry internal `precense`-value should be updated. This merge commit resolves that conflict.
2016-10-12Each test should test with a unique test file nameMatthias Beyer
2016-10-12Add error outputMatthias Beyer
2016-10-12Do not simply unwrap, but return error in case of errorMatthias Beyer
2016-10-09Add hook tests for hooks that error with an error that does not abort the actionMatthias Beyer
2016-10-09Merge pull request #761 from ↵Matthias Beyer
matthiasbeyer/libimagstore/store-tests-more-succeeding-hook-tests libimagstore/store-tests: more succeeding hook tests
2016-10-07Add flag for _update() whether precense should be modifiedMatthias Beyer
This is a bugfix for an very particular issue. Here's what happens: If we create() an FileLockEntry and then update() it, we are running into a problem because update() calls _update() which changes the precense status of a FileLockEntry. Because update() is _consuming_, the FileLockEntry gets drop()ed afterwards. This _again_ causes _update() to be called, but with a new presence status, which is not true in this moment (as the FileLockEntry is still borrowed, but we already marked it as present). This patch is a short-term fix. The real problem is, that our Store interface is consuming. If the Store interface would be non-consuming, this issue wouldn't happen, as the drop() call would not happen. I'm rather sure that this patch will not be reverted in the process of rewriting the Store interface to be non-consuming. But we never know.
2016-10-07Add testing implementation for Drop for FileLockEntryMatthias Beyer
2016-10-07Add output to test helper, so we can see in the trace whats happeningMatthias Beyer
2016-10-07store tests: Add erroring-hook-testsMatthias Beyer
2016-10-07[CHERRY-PICK] Add flag for _update() whether precense should be modifiedMatthias Beyer
This is a bugfix for an very particular issue. Here's what happens: If we create() an FileLockEntry and then update() it, we are running into a problem because update() calls _update() which changes the precense status of a FileLockEntry. Because update() is _consuming_, the FileLockEntry gets drop()ed afterwards. This _again_ causes _update() to be called, but with a new presence status, which is not true in this moment (as the FileLockEntry is still borrowed, but we already marked it as present). This patch is a short-term fix. The real problem is, that our Store interface is consuming. If the Store interface would be non-consuming, this issue wouldn't happen, as the drop() call would not happen. I'm rather sure that this patch will not be reverted in the process of rewriting the Store interface to be non-consuming. But we never know.
2016-10-07[CHERRY-PICK] Add testing implementation for Drop for FileLockEntryMatthias Beyer
2016-10-07Bugfix: The StoreEntry should know the _new_ StoreIdMatthias Beyer
When moving a entry in the store, we also should tell the StoreEntry the new id.
2016-10-07Add comment/documentation for Store::move_by_id()Matthias Beyer
2016-10-07Add check if entry is presentMatthias Beyer
If we try to rename an entry that is borrowed, we fail, as renaming an borrowed entry might result in some _really_ ugly bugs.
2016-10-07Add test for hook execution for each hook positionMatthias Beyer
2016-10-07Abstract testing of hook execution in helper functionMatthias Beyer