From 4a393c14d058a43086964cc77f10e9240e834327 Mon Sep 17 00:00:00 2001 From: Nigel Horne Date: Tue, 27 Aug 2024 15:45:54 -0400 Subject: [PATCH] Latest no404.t --- t/no404s.t | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/t/no404s.t b/t/no404s.t index 03b03d68..a9534d26 100644 --- a/t/no404s.t +++ b/t/no404s.t @@ -4,13 +4,13 @@ use strict; use warnings; use Test::Most; -if(not $ENV{AUTHOR_TESTING}) { - plan(skip_all => 'Author tests not required for installation'); -} - -eval "use Test::Pod::No404s"; -if($@) { - plan skip_all => 'Test::Pod::No404s required for testing POD'; +if($ENV{AUTHOR_TESTING}) { + eval 'use Test::Pod::No404s'; + if($@) { + plan(skip_all => 'Test::Pod::No404s required for testing POD'); + } else { + all_pod_files_ok(); + } } else { - all_pod_files_ok(); + plan(skip_all => 'Author tests not required for installation'); }