Skip to content

Commit c74221b

Browse files
committed
Add check to enforce Feature::Compat::Try
https://progress.opensuse.org/issues/176862
1 parent aeca483 commit c74221b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

t/01-style.t

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ is qx{git grep -I -l '^use Test::\\(Exception\\|Fatal\\)' t/**.t}, '',
2222
is qx{git grep -I -l '^\\(throws\\|dies\\|lives\\)_ok.*\<sub\>' t/**.t}, '',
2323
'Only use simplified prototyped Test::Exception functions';
2424
is qx{git grep -I -l 'like.*\$\@' t/**.t}, '', 'Use throws_ok instead of manual checks of exceptions';
25+
is qx{git grep -I -l '^use \\(Try::Tiny\\|TryCatch\\)'}, '',
26+
'No Try::Tiny or TryCatch necessary, use Feature::Compat::Try and later native Perl';
2527
is qx{git grep -I -l 'sub [a-z_A-Z0-9]\\+()' ':!docs/'}, '',
2628
'Consistent space before function signatures (this is not ensured by perltidy)';
2729
done_testing;

0 commit comments

Comments
 (0)