Dumper/Context/Root.pm

filter: Statementstmt 73.9% 17 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 6 / 8 Podpod 0.0% 0 / 4 totaltotal 65.7% 23 / 35 CC 1 SCAR 2.2
CC
1
Cov
74%
set
2.0
remove
2.0
BEGIN
1.0
CRAP 1.2
« Dumper.pm ↑ Summary Dumper/Context.pm »
1 package TOML::Dumper::Context::Root;
2 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 2 ▶use Class::Accessor::Lite ro => [qw/tree/];
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 2 ▶use TOML::Dumper::Context::Table;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
10 1 my ($class, $object) = @_;
11 1 return bless {
12 tree => TOML::Dumper::Context::Table->new(name => [], tree => $object),
13 } => $class;
14 }
15  
16 0 ▶sub set {
Subroutine set: not called CC=1 SCAR=6.9
Pod undocumented
17 0 my $self = shift;
18 0 $self->{tree}->set(@_);
19 0 return $self;
20 }
21  
22 0 ▶sub remove {
Subroutine remove: not called CC=1 SCAR=6.9
Pod undocumented
23 0 my $self = shift;
24 0 $self->{tree}->remove(@_);
25 0 return $self;
26 }
27  
28 1 ▶sub as_string {
Subroutine as_string: called CC=1 SCAR=0.0
Pod undocumented
29 1 my $self = shift;
30 1 return $self->{tree}->as_string;
31 }
32  
33 2 1;
34 __END__
« Dumper.pm ↑ Summary Dumper/Context.pm »