From ee6184eb7979ab273119e1444b7856819a36f060 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 8 Sep 2018 15:53:15 +0200 Subject: Add TAP log adapter to all tests Signed-off-by: Florian Pritz --- t/cache_contains_data.t | 1 + t/find_archives.t | 1 + t/find_archives_mocked.t | 1 + t/handle_added_archives.t | 1 + t/handle_added_archives_with_db.t | 1 + t/helper/untaint.t | 1 + t/search_path.t | 2 +- t/timespec_to_seconds.t | 1 + 8 files changed, 8 insertions(+), 1 deletion(-) diff --git a/t/cache_contains_data.t b/t/cache_contains_data.t index 2187ab0..48832f4 100644 --- a/t/cache_contains_data.t +++ b/t/cache_contains_data.t @@ -1,6 +1,7 @@ use strict; use warnings; +use Log::Any::Adapter ('TAP'); use Test::More; use Test::MockObject; use Test::Differences; diff --git a/t/find_archives.t b/t/find_archives.t index 7b1fc0f..e49cc2f 100644 --- a/t/find_archives.t +++ b/t/find_archives.t @@ -1,6 +1,7 @@ use strict; use warnings; +use Log::Any::Adapter ('TAP'); use Test::More; use Test::MockObject; use Test::Differences; diff --git a/t/find_archives_mocked.t b/t/find_archives_mocked.t index 7f0186a..a50c308 100644 --- a/t/find_archives_mocked.t +++ b/t/find_archives_mocked.t @@ -1,6 +1,7 @@ use strict; use warnings; +use Log::Any::Adapter ('TAP'); use Test::More; use Test::MockObject; use Test::Differences; diff --git a/t/handle_added_archives.t b/t/handle_added_archives.t index c2b8e78..01f8663 100644 --- a/t/handle_added_archives.t +++ b/t/handle_added_archives.t @@ -1,6 +1,7 @@ use strict; use warnings; +use Log::Any::Adapter ('TAP'); use POSIX qw(tzset); use Test::Differences; use Test::MockObject; diff --git a/t/handle_added_archives_with_db.t b/t/handle_added_archives_with_db.t index a59084c..677953e 100644 --- a/t/handle_added_archives_with_db.t +++ b/t/handle_added_archives_with_db.t @@ -1,6 +1,7 @@ use strict; use warnings; +use Log::Any::Adapter ('TAP'); use POSIX qw(tzset); use Test::Differences; use Test::MockObject; diff --git a/t/helper/untaint.t b/t/helper/untaint.t index f9d8a9c..73b2c2b 100644 --- a/t/helper/untaint.t +++ b/t/helper/untaint.t @@ -1,6 +1,7 @@ use strict; use warnings; +use Log::Any::Adapter ('TAP'); use Test::More; use Test::Exception; diff --git a/t/search_path.t b/t/search_path.t index ef6901c..247b57f 100644 --- a/t/search_path.t +++ b/t/search_path.t @@ -1,13 +1,13 @@ use strict; use warnings; +use Log::Any::Adapter ('TAP'); use Test::More; use Test::MockObject; use Test::Differences; use App::BorgRestore; use App::BorgRestore::DB; -use Log::Any::Adapter ('TAP'); my $db = App::BorgRestore::DB->new(":memory:", 0); my $app = App::BorgRestore->new_no_defaults({db => $db}); diff --git a/t/timespec_to_seconds.t b/t/timespec_to_seconds.t index 0f367c9..3724682 100644 --- a/t/timespec_to_seconds.t +++ b/t/timespec_to_seconds.t @@ -1,6 +1,7 @@ use strict; use warnings; +use Log::Any::Adapter ('TAP'); use Test::More; use App::BorgRestore; -- cgit v1.2.3-24-g4f1b