Condition Coverage

blib/lib/Date/PeriodParser.pm
Criterion Covered Total %
condition 52 68 76.4


and 3 conditions

line !l l&&!r l&&r condition
68 162 0 2 $_ eq '' and $vague
144 0 35 1 $h > 12 and /in the morning$/
0 34 1 $h > 18 and /in the afternoon$/
0 33 1 $h > 21 || $h < 6 and /in the evening$/
339 22 242 18 _isnt_dst(${$$pair[0];}) and _is_dst($$pair[1])
342 260 20 2 _is_dst(${$$pair[0];}) and _isnt_dst($$pair[1])

or 2 conditions

line l !l condition
45 170 1 shift() // ''

or 3 conditions

line l !l&&r !l&&!r condition
46 164 7 0 $TestTime || time
128 27 3 105 /(the day (before|after) )?(yesterday|today|tomorrow)/ or /^this (morning|afternoon|evening|lunchtime)/
30 1 104 /(the day (before|after) )?(yesterday|today|tomorrow)/ or /^this (morning|afternoon|evening|lunchtime)/ or /^at lunchtime$/
4 3 101 /(the day (before|after) )?(yesterday|today|tomorrow)/ or /^this (morning|afternoon|evening|lunchtime)/ or /^at lunchtime$/ or /^(in the) (morning|afternoon|evening)/
4 2 99 /(the day (before|after) )?(yesterday|today|tomorrow)/ or /^this (morning|afternoon|evening|lunchtime)/ or /^at lunchtime$/ or /^(in the) (morning|afternoon|evening)/ or /^(last |to)night/
144 34 0 0 $h > 21 || $h < 6
166 90 3 6 /^(.*) day(?:s)? ago$/ or /^in (.*) day(?:s)?(?: time)?$/
93 1 5 /^(.*) day(?:s)? ago$/ or /^in (.*) day(?:s)?(?: time)?$/ or /^(.*) day(?:s)? (?:away)?\s*(?:from now)?$/
185 1 0 4 /^(.*) week(?:s)? ago$/ or /^in (.*) week(?:s)?(?: time)?$/
1 1 3 /^(.*) week(?:s)? ago$/ or /^in (.*) week(?:s)?(?: time)?$/ or /^(.*) week(?:s)? (?:away)?\s*(?:from now)?$/
205 0 1 2 /^(.*) month(?:s)? ago$/ or /^in (.*) month(?:s)?(?: time)?$/
1 0 2 /^(.*) month(?:s)? ago$/ or /^in (.*) month(?:s)?(?: time)?$/ or /^(.*) month(?:s)? (?:away)?\s*(?:from now)?$/
224 1 0 1 /^(.*) year(?:s)? ago$/ or /^in (.*) year(?:s)?(?: time)?$/
1 0 1 /^(.*) year(?:s)? ago$/ or /^in (.*) year(?:s)?(?: time)?$/ or /^(.*) year(?:s)? (?:away)?\s*(?:from now)?$/
244 0 0 1 $from || $to
373 12 0 0 $TestTime || time