Condition Coverage

blib/lib/Plack/App/DataSection.pm
Criterion Covered Total %
condition 8 27 29.6


and 3 conditions

line !l l&&!r l&&r condition
77 0 2 0 $content and $is_binary

or 2 conditions

line l !l condition
18 3 0 $$env{'PATH_INFO'} || ''
62 0 2 (shift())->{'_cache'} ||= {}
71 0 2 $self->encoding || 'utf-8'

or 3 conditions

line l !l&&r !l&&!r condition
48 0 2 0 $$self{'_reader'} ||= 'Data::Section::Simple'->new(ref $self)
53 0 2 0 $$self{'_data_section_hash'} ||= $self->data_section->get_data_section
75 0 2 0 $self->_cache->{$path} ||= do { my $content = $self->get_data_section($path); $content = decode_base64 $content if $content and $is_binary; $content }
93 0 2 0 $$self{'last_modified'} ||= do { my $mod = ref $self; $mod =~ s[::][/]g; $mod .= '.pm'; my $full_path = $INC{$mod}; my(@stat) = stat $full_path; &HTTP::Date::time2str($stat[9]) }
112 0 0 0 $base_dir->mkpath or $! != &Errno::EEXIST()
123 0 0 0 $dir_path->mkpath or $! != &Errno::EEXIST()