#!/usr/bin/perl use Test::More tests => 1; use strict; use lib qw( lib ../lib ); use Pod::POM; use Pod::POM::View::HTML; my $text; { local $/ = undef; $text = ; } my $parser = Pod::POM->new(); Pod::POM->default_view("Pod::POM::View::TOC"); my $pom = $parser->parse_text($text); my $toc = "$pom"; is($toc, qq{NAME SYNOPSIS DESCRIPTION METHODS => OTHER STUFF new() deep old() TESTING FOR AND BEGIN TESTING URLs hyperlinking SEE ALSO }); __DATA__ =head1 NAME Test =head1 SYNOPSIS use My::Module; =head1 DESCRIPTION This is the description. Here is a verbatim section. =head1 METHODS =E OTHER STUFF Here is a list of methods =head2 new() new =over =item Cat =back =head3 deep =head2 old() Destructor method =head1 TESTING FOR AND BEGIN =for html

blah blah

intermediate text =begin html HTML some text =end =head1 TESTING URLs C This is an href link1: http://example.com =head1 SEE ALSO See also L, =cut