File: 003_error.t

package info (click to toggle)
libfile-mmagic-xs-perl 0.09008-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 484 kB
  • sloc: perl: 2,130; ansic: 1,858; makefile: 9; xml: 1
file content (16 lines) | stat: -rw-r--r-- 232 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!perl
use strict;
use Test::More (tests => 4);
BEGIN
{
    use_ok("File::MMagic::XS");
}

my $fm = File::MMagic::XS->new;

ok ! $fm->error;
ok !$fm->fsmagic("t/non-existent");

my $error = $fm->error;
ok $error, qr/No such file/;