imag/lib/core
Matthias Beyer 0916c92a18 Bugfix: Rebuild iterator when changing collection
This patch fixes a bug where the following code (here pseudocode) did
the wrong thing:

    store.entries().in_collection("foo").for_each(||...)

because the `.in_collection()` call for the underlying PathIterator
object did not actually re-build the iterator. It only changed the
contained `PathIterBuilder`, but did not call `.build_iter()` on it to
rebuild the iterator object.

The test added with this patch checks whether the iterator does the
right thing.

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-02-15 18:29:15 +01:00
..
libimagerror Remove magic constants in trace_unwrap_exit/map_err_trace_exit_unwrap calls 2019-02-11 03:52:04 +01:00
libimagrt Adapt for new interface of gen_vars() function 2019-02-11 03:52:04 +01:00
libimagstore Bugfix: Rebuild iterator when changing collection 2019-02-15 18:29:15 +01:00