blib/lib/Type/Tiny/Bitfield.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 29 | 46 | 63.0 |
line | l | !l | condition | |
---|---|---|---|---|
33 | 18 | 1 | 0 | /^[-]/ and delete $values{$_} |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
71 | 0 | 2 | 39 | is_PositiveOrZeroInt($value) and _is_power_of_two($value) |
83 | 6 | 0 | 12 | defined $opts{'coercion'} and not ref $opts{'coercion'} |
6 | 0 | 12 | defined $opts{'coercion'} and not ref $opts{'coercion'} and 1 eq $opts{'coercion'} | |
104 | 0 | 0 | 10 | &Scalar::Util::blessed($self) and $self->isa("Type::Tiny::Bitfield") |
0 | 2 | 8 | &Scalar::Util::blessed($self) and $self->isa("Type::Tiny::Bitfield") and &Scalar::Util::blessed($other) | |
2 | 2 | 6 | &Scalar::Util::blessed($self) and $self->isa("Type::Tiny::Bitfield") and &Scalar::Util::blessed($other) and $other->isa("Type::Tiny::Bitfield") | |
237 | 0 | 1 | 4 | ref $self and exists $self->{'values'}{$m} |
246 | 0 | 500 | 2 | ref $self and exists $self->{'values'}{$m} |
line | l | !l | condition |
---|---|---|---|
195 | 1 | 11 | $varname ||= "\$_" |
223 | 3 | 1 | $self->{'all_names'} ||= [(sort {$values{$a} <=> $values{$b};} keys %values)] |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
42 | 0 | 0 | 4 | ref $caller or $caller eq "-lexical" |
0 | 0 | 4 | ref $caller or $caller eq "-lexical" or $globals->{'lexical'} | |
118 | 3 | 1 | 1 | $self->has_coercion || $other->has_coercion |
139 | 0 | 5 | 0 | $base_name ||= $self->name |
212 | 0 | 1 | 0 | $self->{'from_string'} ||= eval_closure("environment", {}, "source", sprintf("sub { my \$STR = shift; %s }", $self->_stringy_coercion("\$STR"))) |