Branch Coverage

blib/lib/Test/Deep/DateTime/RFC3339.pm
Criterion Covered Total %
branch 25 28 89.2


line true false branch
30 2 13 unless @_
32 0 13 unless my $expected = shift()
35 2 11 unless ($expected->$Test::Deep::DateTime::RFC3339::_isa('DateTime'))
36 1 1 unless my $parsed = eval { do { $$self{'parser'}->parse_datetime($expected) } }
40 6 6 unless ($tolerance->$Test::Deep::DateTime::RFC3339::_isa('DateTime::Duration'))
42 1 5 unless my $parsed = eval { do { $parser->parse($tolerance)->to_duration } }
62 2 8 if ($@ or not $got)
63 2 0 defined $_[1] ? :
68 7 1 if $expected
75 7 1 $expected ? :
84 2 0 if $$self{'diag_message'}
92 1 3 unless $$self{'expected'}
95 2 1 $$self{'tolerance'}->is_zero ? :
102 1 2 $got->$Test::Deep::DateTime::RFC3339::_isa('DateTime') ? :