Condition Coverage

blib/lib/Data/Currency.pm
Criterion Covered Total %
condition 35 46 76.0


and 3 conditions

line !l l&&!r l&&r condition
214 4 0 3 &Scalar::Util::blessed($other) and $other->isa('Data::Currency')
228 3 0 3 &Scalar::Util::blessed($other) and $other->isa('Data::Currency')
243 3 0 2 &Scalar::Util::blessed($other) and $other->isa('Data::Currency')
257 3 0 4 &Scalar::Util::blessed($other) and $other->isa('Data::Currency')
266 3 1 0 $reversed and $self->value == 0
277 2 0 4 &Scalar::Util::blessed($other) and $other->isa('Data::Currency')
284 3 1 0 $reversed and $self->value == 0
295 3 0 2 &Scalar::Util::blessed($other) and $other->isa('Data::Currency')
308 2 0 3 &Scalar::Util::blessed($other) and $other->isa('Data::Currency')

or 2 conditions

line l !l condition
99 1 1 $from || 'undef'
102 1 1 $to || 'undef'
113 2 1 $self->converter->convert($self->value, $from, $to) || 0
145 1 1 $code || 'undef'
208 21 2 Locale::Currency::Format::decimal_precision($self->code) || 0

or 3 conditions

line l !l&&r !l&&!r condition
132 1 26 1 shift() || $self->format
266 2 0 4 $other == 0 or $reversed and $self->value == 0
284 1 0 4 $other == 0 or $reversed and $self->value == 0