Debian Codegraph @

t/02html01.t

raw
1 #! perl
2
3 use strict;
4 use warnings;
5 use Test::More qw(no_plan);
6
7 use Data::Report;
8
9 my $rep = Data::Report::->create
10 (type => "html",
11 layout => [ { name => "acct", title => "Acct", width => 6 },
12 { name => "desc", title => "Report", width => 40, align => "|" },
13 { name => "deb", title => "Debet", width => 10, align => "<" },
14 { name => "crd", title => "Credit", width => 10, align => ">" },
15 ],
16 );
17
18 my $out = "";
19 $rep->set_output(\$out);
20 $rep->start;
21 $rep->finish;
22 $rep->close;
23
24 is($out, "");
25