From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

use Test;
use strict;
my @tests = (
sub {
my $d = XML::Filter::Dispatcher->new;
$d->start_document( {} );
$d->end_document ( {} );
ok 1;
},
sub {
my $d = XML::Filter::Dispatcher->new( Rules => [] );
$d->start_document( {} );
$d->end_document ( {} );
ok 1;
},
);
plan tests => 0+@tests;
$_->() for @tests;