Debian Codegraph @

cpan/autodie/t/autodie_skippy.pm

raw
1 package autodie_skippy;
2 use strict;
3 use warnings;
4 use autodie;
5 use parent qw(autodie::skip);
6
7 # This should skip upwards to the caller.
8
9 sub fail_open {
10 open(my $fh, '<', 'this_file_had_better_not_exist');
11 }
12
13 package autodie_unskippy;
14 use autodie;
15
16 # This should not skip upwards.
17
18 sub fail_open {
19 open(my $fh, '<', 'this_file_had_better_not_exist');
20 }
21
22 1;