File: 09reader.t

package info (click to toggle)
libsvn-dump-perl 0.08-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 416 kB
  • sloc: perl: 682; makefile: 7
file content (20 lines) | stat: -rw-r--r-- 400 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use strict;
use Test::More;
use SVN::Dump::Reader;

# the many way to fail
my %test = (
    false     => '',
    string    => 'file',
    reference => \'file',
    object    => bless( {}, 'Zlonk'),
);

plan tests => scalar keys %test;

for my $t ( keys %test ) {
    eval { my $r = SVN::Dump::Reader->new( $test{$t} ); };
    like( $@, qr/^SVN::Dump::Reader parameter is not a filehandle/, $t );

}