File: read_write.t

package info (click to toggle)
libio-all-perl 0.87-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 712 kB
  • sloc: perl: 2,017; makefile: 5
file content (14 lines) | stat: -rw-r--r-- 412 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use strict; use warnings;
use lib -e 't' ? 't' : 'test';
use Test::More tests => 2;
use IO::All;
use IO_All_Test;

my $io = io(defined($ENV{AUTOPKGTEST_TMP}) ? '/usr/share/perl5/IO/All.pm' : 'lib/IO/All.pm');
my $buffer;
$io->buffer($buffer);
1 while $io->read;
ok(length($buffer));
test_file_contents($buffer, defined($ENV{AUTOPKGTEST_TMP}) ? '/usr/share/perl5/IO/All.pm' : 'lib/IO/All.pm');

del_output_dir();