| 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 |
(layout => [ { name => "acct", title => "Acct", width => 6 }, |
| 11 |
{ name => "desc", title => "Report", width => 40, align => "|" }, |
| 12 |
{ name => "deb", title => "Debet", width => 10, align => "<" }, |
| 13 |
{ name => "crd", title => "Credit", width => 10, align => ">" }, |
| 14 |
], |
| 15 |
); |
| 16 |
isa_ok($rep, 'Data::Report::Plugin::Text'); |
| 17 |
|
| 18 |
my $data = ""; |
| 19 |
$rep->set_output(\$data); |
| 20 |
$rep->start; |
| 21 |
$rep->finish; |
| 22 |
$rep->close; |
| 23 |
|
| 24 |
is($data, "", "contents"); |
| 25 |
|