summaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2017-04-01 23:07:14 +0200
committerFlorian Pritz <bluewind@xinu.at>2017-04-01 23:07:14 +0200
commite56763721e595bd3337d7aadd688c47b545b3d8b (patch)
tree8f445a56ae6c20992c94496a348893f73f83f6dd /t
parent4062f1a2233a2ed2054c8134b8397c10f6e49bcf (diff)
downloadApp-BorgRestore-e56763721e595bd3337d7aadd688c47b545b3d8b.tar.gz
App-BorgRestore-e56763721e595bd3337d7aadd688c47b545b3d8b.tar.xz
Mark some functions private
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 't')
-rw-r--r--t/02_parsing.t2
-rw-r--r--t/03_timespec.t18
2 files changed, 10 insertions, 10 deletions
diff --git a/t/02_parsing.t b/t/02_parsing.t
index 8f3bcfb..b8e2d64 100644
--- a/t/02_parsing.t
+++ b/t/02_parsing.t
@@ -28,7 +28,7 @@ $borg->mock('list_archive', sub {
# Call the actual function we want to test
my $app = App::BorgRestore->new({borg => $borg, db => $db});
-$app->handle_added_archives(['archive-1'], $db);
+$app->_handle_added_archives(['archive-1'], $db);
# Check if $db->add_path has been called properly
my (@calls, @a);
diff --git a/t/03_timespec.t b/t/03_timespec.t
index ae1b1e5..0f367c9 100644
--- a/t/03_timespec.t
+++ b/t/03_timespec.t
@@ -7,15 +7,15 @@ use App::BorgRestore;
my $app = App::BorgRestore->new_no_defaults(undef);
-is($app->timespec_to_seconds('5s'), 5, '5 seconds');
-is($app->timespec_to_seconds('5minutes'), 5*60, '5 minutes');
-is($app->timespec_to_seconds('6d'), 6*60*60*24, '6 days');
-is($app->timespec_to_seconds('8m'), 8*60*60*24*31, '8 months');
-is($app->timespec_to_seconds('2y'), 2*60*60*24*365, '2 years');
+is($app->_timespec_to_seconds('5s'), 5, '5 seconds');
+is($app->_timespec_to_seconds('5minutes'), 5*60, '5 minutes');
+is($app->_timespec_to_seconds('6d'), 6*60*60*24, '6 days');
+is($app->_timespec_to_seconds('8m'), 8*60*60*24*31, '8 months');
+is($app->_timespec_to_seconds('2y'), 2*60*60*24*365, '2 years');
-is($app->timespec_to_seconds('5sec'), undef, 'invalid unit returns undef');
-is($app->timespec_to_seconds('5'), undef, 'missing unit returns undef');
-is($app->timespec_to_seconds('blub'), undef, 'string returns undef');
-is($app->timespec_to_seconds(''), undef, 'empty string returns undef');
+is($app->_timespec_to_seconds('5sec'), undef, 'invalid unit returns undef');
+is($app->_timespec_to_seconds('5'), undef, 'missing unit returns undef');
+is($app->_timespec_to_seconds('blub'), undef, 'string returns undef');
+is($app->_timespec_to_seconds(''), undef, 'empty string returns undef');
done_testing;