Debian Codegraph @

cpan/autodie/t/read.t

raw
1 #!/usr/bin/perl
2
3 use strict;
4 use warnings;
5 use autodie;
6
7 use Test::More tests => 2;
8
9 my $buffer = 'should-not-appear';
10 eval {
11 read('BOFH', $buffer, 1024);
12 };
13 like($@, qr/Can't read\(BOFH, <BUFFER>, 1024\)/,
14 'read should not show the buffer');
15 eval {
16 read('BOFH', $buffer, 1024, 5);
17 };
18 like($@, qr/Can't read\(BOFH, <BUFFER>, 1024, 5\)/,
19 'read should not show the buffer');