The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more

use strict;
use warnings FATAL => 'all';
use APR::Finfo ();
use Apache::Const -compile => 'OK';
use APR::Const -compile => qw(FINFO_NORM);
sub handler {
my $r = shift;
my $tests = 1 + TestAPRlib::finfo::num_of_tests();
plan $r, tests => $tests;
{
my $finfo = $r->finfo;
my $isa = $finfo->isa('APR::Finfo');
t_debug "\$r->finfo $finfo";
ok $isa;
}
# a test assigning to $r->finfo is in TestAPI::request_rec
TestAPRlib::finfo::test();
Apache::OK;
}
1;