Branch Coverage

blib/lib/Parcel/Track.pm
Criterion Covered Total %
branch 20 28 71.4


line true false branch
23 4 23 unless (defined $driver_class and not ref $driver_class and length $driver_class)
26 5 18 unless (&Params::Util::_CLASS($driver_class))
30 4 12 unless (defined $id and not ref $id and length $id)
40 2 2 if (/^Can't locate /) { }
50 1 7 unless ($driver_class->can('new'))
57 1 5 unless ($driver->can('does') and $driver->does('Parcel::Track::Role::Base'))
68 0 2 unless &Params::Util::_HASH($rv)
70 0 2 unless &Params::Util::_SCALAR0(\$$rv{'from'})
72 0 2 unless &Params::Util::_SCALAR0(\$$rv{'to'})
74 0 2 unless &Params::Util::_SCALAR0(\$$rv{'result'})
76 0 2 unless &Params::Util::_ARRAY0($$rv{'descs'})
78 0 2 unless &Params::Util::_ARRAY0($$rv{'htmls'})
86 0 7 ref $_[0] ? :
92 2 0 if (&Params::Util::_STRING($key) and $key =~ /^_/)