imag/lib/core/libimagstore/src
Matthias Beyer da408b9e67 This fixes the file parsing (again)
Unfortunately, our latest fix to file parsing did not solve all issues.
So we have to fix it _again_.

The problem was the `std::str::Lines` iterator, which apparently fails
this:

    assert_eq!(1, "".lines().count());

as an empty line seems not to be a line.

Because of that, when reading a file with an empty line at its bottom
got stripped off that line.

This patch removes the use of the `lines()` iterator and uses
`split("\n")` instead. This only works on Unix operating systems, but as
we only target unix operating systems with imag, this is not considered
an issue right now.

This patch also adds extensive tests on multiple levels in the
`libimagstore` implementation:

* On the parsing level, for the function which implements the parsing
* On the filesystem abstraction levels
* On the `Store` levels

to make sure that everything is parsed correctly.
2018-03-10 14:53:15 +01:00
..
file_abstraction This fixes the file parsing (again) 2018-03-10 14:53:15 +01:00
configuration.rs Update dates in license header 2018-02-07 02:48:53 +01:00
error.rs Rewrite entry parsing algorithm 2018-02-20 21:06:36 +01:00
iter.rs Update dates in license header 2018-02-07 02:48:53 +01:00
lib.rs Rewrite entry parsing algorithm 2018-02-20 21:06:36 +01:00
store.rs This fixes the file parsing (again) 2018-03-10 14:53:15 +01:00
storeid.rs Update dates in license header 2018-02-07 02:48:53 +01:00
util.rs This fixes the file parsing (again) 2018-03-10 14:53:15 +01:00