Branch Coverage

blib/lib/Mira/Config.pm
Criterion Covered Total %
branch 8 52 15.3


line true false branch
25 1 0 if (-f catfile($source, 'config.yml')) { }
28 0 1 unless open my $fh, '<:encoding(UTF-8)', 'config.yml'
36 0 1 if ($@)
42 0 1 unless exists $self->{'_default'}{'post_num'} and $self->{'_default'}{'post_num'}
43 0 1 unless exists $self->{'_default'}{'archive_post_num'} and $self->{'_default'}{'archive_post_num'}
44 1 0 unless exists $self->{'_default'}{'feed_post_num'} and $self->{'_default'}{'feed_post_num'}
45 0 1 unless exists $self->{'_default'}{'default_floor'} and $self->{'_default'}{'default_floor'}
46 1 0 unless exists $self->{'_default'}{'date_format'} and $self->{'_default'}{'date_format'}
56 0 0 if (-f catfile($source, 'config', "$floor.yml")) { }
60 0 0 unless open my $fh, '<:encoding(UTF-8)', $flyaml
69 0 0 if ($@)
76 0 0 unless $self->{$floor}{'title'}
77 0 0 unless $self->{$floor}{'description'}
78 0 0 unless $self->{$floor}{'root'}
79 0 0 unless $self->{$floor}{'url'}
80 0 0 unless $self->{$floor}{'static'}
81 0 0 unless $self->{$floor}{'imageurl'}
82 0 0 unless $self->{$floor}{'author'}
83 0 0 unless $self->{$floor}{'email'}
84 0 0 unless $self->{$floor}{'template'}
85 0 0 unless $self->{$floor}{'lists'}
86 0 0 unless $self->{$floor}{'namespace'}
87 0 0 unless $self->{$floor}{'date_format'}
88 0 0 unless $self->{$floor}{'post_num'}
89 0 0 unless $self->{$floor}{'archive_post_num'}
90 0 0 unless $self->{$floor}{'feed_post_num'}