Condition Coverage

blib/lib/Rose/HTML/Object/MakeMethods/Localization.pm
Criterion Covered Total %
condition 31 99 31.3


and 3 conditions

line !l l&&!r l&&r condition
39 0 0 0 @_ == 1 and ref($_[0]) =~ /^(?:HASH|ARRAY)$/
126 0 0 0 @_ == 1 and ref($_[0]) =~ /^(?:HASH|ARRAY)$/
197 0 0 0 @_ == 1 and ref($_[0]) =~ /^(?:HASH|ARRAY)$/
278 6 0 1 ref $_[0] eq "ARRAY" and not @{$_[0];}
306 0 0 2 @_ == 1 and ref($_[0]) =~ /^(?:HASH|ARRAY)$/
498 63 50 0 @$args == 1 and ref $args->[0] eq "ARRAY"
517 12 99 3 $id_method and not $id =~ /^\d+$/
525 52 5 0 $singular and $i + 1 < $#$args

or 2 conditions

line l !l condition
17 0 153 $args->{'interface'} || 'get_set'
21 0 153 $args->{'accept_msg_class'} || 'Rose::HTML::Object::Message'
100 0 0 $args->{'interface'} || 'get_set'
104 0 0 $args->{'accept_error_class'} || 'Rose::HTML::Object::Error'
253 0 43 $args->{'interface'} || 'get_set'
266 0 43 $args->{'accept_error_class'} || 'Rose::HTML::Object::Error'

or 3 conditions

line l !l&&r !l&&!r condition
18 0 153 0 $args->{'hash_key'} || $name
19 0 153 0 $args->{'msg_id_method'} || $key . '_message_id'
50 0 0 0 $self->localizer->get_message_id($id) || Carp::croak("Unknown message id: '${id}'")
101 0 0 0 $args->{'hash_key'} || $name
102 0 0 0 $args->{'error_id_method'} || $key . '_id'
137 0 0 0 $self->localizer->get_error_id($id) || Carp::croak("Attempt to call $name() with more than one ", 'argument, and the first argument is not a numeric ', "error id: '${id}'")
208 0 0 0 $localizer->get_error_id($id) || Carp::croak("Unknown error id: '${id}'")
254 0 43 0 $args->{'hash_key'} || $name
255 0 43 0 $args->{'plural_name'} || $name
256 0 43 0 $args->{'singular_name'} || plural_to_singular($plural_name)
257 0 43 0 $args->{'has_error_method'} || 'has_' . $plural_name
258 0 43 0 $args->{'has_errors_method'} || 'has_' . $singular_name
259 0 43 0 $args->{'add_error_method'} || 'add_' . $singular_name
260 0 43 0 $args->{'add_errors_method'} || 'add_' . $plural_name
261 0 43 0 $args->{'error_id_method'} || $singular_name . '_id'
262 0 43 0 $args->{'error_ids_method'} || $singular_name . '_ids'
263 0 43 0 $args->{'add_error_id_method'} || 'add_' . $singular_name . '_id'
264 0 43 0 $args->{'add_error_ids_method'} || 'add_' . $singular_name . '_ids'
278 1 6 1 not defined $_[0] or ref $_[0] eq "ARRAY" and not @{$_[0];}
317 0 0 0 $localizer->get_error_id($id) || Carp::croak("Attempt to call $singular_name() with more than one ", 'argument, and the first argument is not a numeric ', "error id: '${id}'")
519 3 0 0 $localizer->get_error_id($id) || Carp::croak("Unknown error id: '${id}'")