Forest/Tree/Writer.pm

filter: Statementstmt 100% 13 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 100% 1 / 1 totaltotal 100% 17 / 17 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
write
1.0
BEGIN
1.0
CRAP 1.0
« Forest/Tree/Roles/JSONable.pm ↑ Summary
1 package Forest::Tree::Writer;
2 5 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 5 our $VERSION = '0.10';
5 5 our $AUTHORITY = 'cpan:STEVAN';
6  
7 5 has 'tree' => (
8 is => 'rw',
9 isa => 'Forest::Tree::Pure',
10 required => 1,
11 );
12  
13 5 requires 'as_string';
14  
15 2 ▶sub write {
Subroutine write: called CC=1 SCAR=0.0
Pod documented
16 2 my ($self, $fh) = @_;
17 2 print $fh $self->as_string;
18 }
19  
20 5 ▶no Moose::Role; 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
21  
22 __END__
« Forest/Tree/Roles/JSONable.pm ↑ Summary