File: 04parse_self.t

package info (click to toggle)
libpod-sax-perl 0.14-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 172 kB
  • sloc: perl: 545; makefile: 7
file content (19 lines) | stat: -rw-r--r-- 378 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use strict;
use Test;
BEGIN { plan tests => 3 }
use Pod::SAX;
use XML::SAX::Writer;

my $output = '';
my $p = Pod::SAX->new(
               Handler => XML::SAX::Writer->new(
                   Output => \$output
               )
        );

ok($p);

$p->parse_uri("lib/Pod/SAX.pm");
ok($output);
print "$output\n";
ok($output, qr/<pod>.*<\/pod>/s, "Matches basic pod outline");