File: formatter_pod.t

package info (click to toggle)
libmojomojo-perl 1.12%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,524 kB
  • sloc: perl: 14,730; xml: 120; sh: 97; makefile: 8; ruby: 6
file content (25 lines) | stat: -rw-r--r-- 444 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/perl -w
use MojoMojo::Formatter::Pod;
use Test::More tests => 2;
use lib 't/lib';
use FakeCatalystObject;

my $content;

my $ib = '{{pod}}';
my $ie = '{{end}}';
$content = <<POD;
$ib

=head1 FOO

Test message

=cut

$ie
POD
MojoMojo::Formatter::Pod->format_content(\$content, FakeCatalystObject->new);
like($content, qr'<h1><a.*FOO.*/h1>'s, "there is an h1 FOO");
like($content, qr'<p>Test message</p>', "there is a Test message");