Branch Coverage

blib/lib/Statocles/Store.pm
Criterion Covered Total %
branch 49 52 94.2


line true false branch
107 0 601 if $in_global_destruction
108 502 99 if (--$FILE_STORES{$self->_realpath} <= 0)
129 30 74 unless $path->is_file
130 4 70 unless $self->_is_owned_path($path)
131 0 70 unless $self->is_document($path)
145 3048 20131 if $store_path eq $self_path
147 667 19464 if $self_path =~ /^\Q$store_path\E/
148 513 18951 if $path =~ /^\Q$store_path\E/
168 5 564 $doc{'class'} ? :
170 2 567 if ($@)
171 2 0 if (ref $@ and $@->isa('Error::TypeTiny::Assertion')) { }
172 1 1 if ($@->attribute_name eq 'date')
204 6 574 unless $content
208 566 8 if (@lines and $lines[0] =~ /^---/)
215 1 565 unless (defined $i)
223 1 564 if ($@)
249 1 9 if ($path->is_absolute)
262 2 7 if (defined wantarray)
272 3 6 if (exists $doc->{'date'})
276 2 16 if (exists $doc->{$hash_type} and not keys %{$$doc{$hash_type};})
369 2419 3161 if $path->is_dir
370 509 2652 unless $self->_is_owned_path($path)
371 7 2645 if not $opt{'include_documents'} and $self->is_document($path)
374 190 2645 unless $path
412 2 1455 if (ref $content eq 'GLOB') { }
485 970 elsif (&blessed($content) and $content->isa('Path::Tiny')) { }