From 883908de23d82bd4de856dd7aa4865b0f71a6642 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Thu, 6 Sep 2018 18:30:48 +0200 Subject: t/handle_added_archives: Check for paths that should not be part of the db Signed-off-by: Florian Pritz --- t/handle_added_archives_with_db.t | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t/handle_added_archives_with_db.t b/t/handle_added_archives_with_db.t index 7bb3106..a59084c 100644 --- a/t/handle_added_archives_with_db.t +++ b/t/handle_added_archives_with_db.t @@ -35,12 +35,14 @@ for my $in_memory (0,1) { $app->_handle_added_archives(['archive-1']); # check database content + eq_or_diff($db->get_archives_for_path('.'), [{archive => 'archive-1', modification_time => undef},]); eq_or_diff($db->get_archives_for_path('boot'), [{archive => 'archive-1', modification_time => 20},]); eq_or_diff($db->get_archives_for_path('boot/foo'), [{archive => 'archive-1', modification_time => 19},]); eq_or_diff($db->get_archives_for_path('boot/foo/bar'), [{archive => 'archive-1', modification_time => 19},]); eq_or_diff($db->get_archives_for_path('boot/foo/blub'), [{archive => 'archive-1', modification_time => 13},]); eq_or_diff($db->get_archives_for_path('boot/grub'), [{archive => 'archive-1', modification_time => 20},]); eq_or_diff($db->get_archives_for_path('boot/grub/grub.cfg'), [{archive => 'archive-1', modification_time => 8},]); + eq_or_diff($db->get_archives_for_path('lulz'), [{archive => 'archive-1', modification_time => undef},]); } -- cgit v1.2.3-24-g4f1b