Branch Coverage

blib/lib/Mira/Config.pm
Criterion Covered Total %
branch 14 44 31.8


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'}{'root'} and $self->{'_default'}{'root'}
45 0 1 unless exists $self->{'_default'}{'url'} and $self->{'_default'}{'url'}
48 0 1 unless exists $self->{'_default'}{'post_num'} and $self->{'_default'}{'post_num'}
49 0 1 unless exists $self->{'_default'}{'archive_post_num'} and $self->{'_default'}{'archive_post_num'}
50 1 0 unless exists $self->{'_default'}{'feed_post_num'} and $self->{'_default'}{'feed_post_num'}
51 0 1 unless exists $self->{'_default'}{'default_floor'} and $self->{'_default'}{'default_floor'}
52 1 0 unless exists $self->{'_default'}{'date_format'} and $self->{'_default'}{'date_format'}
53 0 1 unless exists $self->{'_default'}{'permalink'} and $self->{'_default'}{'permalink'}
54 1 0 unless exists $self->{'_default'}{'default_markup'} and $self->{'_default'}{'default_markup'}
55 1 0 unless exists $self->{'_default'}{'default_extension'} and $self->{'_default'}{'default_extension'}
56 0 1 unless exists $self->{'_default'}{'static'} and $self->{'_default'}{'static'}
66 0 0 if (-f catfile($source, 'config', "$floor.yml")) { }
70 0 0 unless open my $fh, '<:encoding(UTF-8)', $flyaml
79 0 0 if ($@)
85 0 0 unless $self->{$floor}{'title'}
86 0 0 unless $self->{$floor}{'root'}
87 0 0 unless $self->{$floor}{'url'}
88 0 0 unless $self->{$floor}{'static'}
103 0 0 unless exists $self->{$floor}{$key}