summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2019-02-07 13:35:48 +0100
committerFlorian Pritz <bluewind@xinu.at>2019-02-07 13:35:48 +0100
commit93af313b49a44b83d13691fe870f8f8fe84e6f92 (patch)
tree191bd7ce8fcb455f52e1ffaca39ba16cf90a9484
parent13293ca74abc6bee40248c3e5aa349e10e298191 (diff)
downloadApp-BorgRestore-93af313b49a44b83d13691fe870f8f8fe84e6f92.tar.gz
App-BorgRestore-93af313b49a44b83d13691fe870f8f8fe84e6f92.tar.xz
t/handle_added_archives: Document weird test
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r--t/handle_added_archives_with_db.t6
1 files changed, 3 insertions, 3 deletions
diff --git a/t/handle_added_archives_with_db.t b/t/handle_added_archives_with_db.t
index db38b83..2e222b3 100644
--- a/t/handle_added_archives_with_db.t
+++ b/t/handle_added_archives_with_db.t
@@ -58,7 +58,7 @@ for my $in_memory (0,1) {
eq_or_diff($db->get_archives_for_path('etc/foo'), [{archive => 'archive-1', modification_time => 2},]);
eq_or_diff($db->get_archives_for_path('etc/foo/bar'), [{archive => 'archive-1', modification_time => 1},]);
eq_or_diff($db->get_archives_for_path('etc/foo/blub'), [{archive => 'archive-1', modification_time => 1},]);
- eq_or_diff($db->get_archives_for_path('lulz'), [{archive => 'archive-1', modification_time => undef},]);
+ eq_or_diff($db->get_archives_for_path('lulz'), [{archive => 'archive-1', modification_time => undef},], 'test non-existant path');
# add second archive
@@ -156,7 +156,7 @@ for my $in_memory (0,1) {
eq_or_diff($db->get_archives_for_path('lulz'), [
{archive => 'archive-1', modification_time => undef},
{archive => 'archive-2', modification_time => undef},
- ]);
+ ], 'test non-existant path');
# remove first archive
$app->_handle_removed_archives(['archive-2']);
@@ -179,7 +179,7 @@ for my $in_memory (0,1) {
eq_or_diff($db->get_archives_for_path('etc/foo'), [{archive => 'archive-2', modification_time => 2},]);
eq_or_diff($db->get_archives_for_path('etc/foo/bar'), [{archive => 'archive-2', modification_time => 1},]);
eq_or_diff($db->get_archives_for_path('etc/foo/blub'), [{archive => 'archive-2', modification_time => undef},]);
- eq_or_diff($db->get_archives_for_path('lulz'), [{archive => 'archive-2', modification_time => undef},]);
+ eq_or_diff($db->get_archives_for_path('lulz'), [{archive => 'archive-2', modification_time => undef},], 'test non-existant path');
}