Condition Coverage

blib/lib/Template/LiquidX/Tag/Include.pm
Criterion Covered Total %
condition 4 16 25.0


and 2 conditions

line l !l condition
46 0 1 {'type', 'Argument', 'message', 'Error: Missing or undefined argument passed to include'} && (return)
55 0 0 {'type', 'Argument', 'message', sprintf(q[Error: Include file '%s' contains invalid characters or sequiences], $file)} && (return)
67 0 1 {'type', 'I/O', 'message', sprintf('Error: Included file %s not found', $file)} && (return)
74 0 0 {'type', 'I/O', 'message', sprintf('Error: Cannot include file %s: %s', $file, $!)} && (return)
81 0 0 {'type', 'I/O', 'message', sprintf('Error: Cannot include file %s (Failed to read %d bytes): %s', $file, -s $FH, $!)} && (return)

or 3 conditions

line l !l&&r !l&&!r condition
52 0 0 3 not $file =~ m[^[\w\\/\.-_]+$]io or $file =~ m[\.[\\/]]o
0 0 3 not $file =~ m[^[\w\\/\.-_]+$]io or $file =~ m[\.[\\/]]o or $file =~ m([//\\]\.)o