Branch Coverage

lib/UR/DataSource/FileMux.pm
Criterion Covered Total %
branch 71 126 56.3


line true false branch
70 3 18 if ($WORKING_RULES{$rule->id}++)
80 0 18 if ($ENV{'UR_DBI_MONITOR_SQL'})
90 3 22 unless (@values)
102 2 20 if (@values == 1 and ref $values[0] eq 'ARRAY')
106 0 22 if ($ENV{'UR_DBI_MONITOR_SQL'})
110 0 22 unless ($rule->specifies_value_for($param_name))
111 0 0 if (scalar @values == 1) { }
124 9 6 if (ref $file_resolver ne 'CODE')
145 0 15 if ($ENV{'UR_DBI_MONITOR_SQL'})
172 0 17 unless ($resolved_file)
184 3 14 unless $initial_obj
191 0 15 unless (scalar @ds_constant_values == scalar @ds_iterators and scalar @ds_constant_values == scalar @ds_next_row)
202 2 13 if (@ds_iterators == 0) { }
12 1 elsif (@ds_iterators == 1) { }
222 0 1 unless ($sort_order and @$sort_order)
233 0 0 unless $column_name
234 0 0 unless $column_name_to_row_index{$column_name}
253 4 1 if ($comparison == -1) { }
1 0 elsif ($comparison == 1) { }
268 0 38 if ($monitor_start_time and not $monitor_printed_first_fetch)
280 15 14 if ($refill_row) { }
291 0 9 if ($monitor_start_time)
308 11 6 unless ($sub_ds = $concrete_ds_type->get($sub_ds_id))
309 0 11 if ($ENV{'UR_DBI_MONITOR_SQL'})
323 0 11 unless ($sub_ds)
341 0 12 unless ($sub)
355 1 3 if (exists $ds_data->{'required_for_get'}) { }
359 1 0 if (ref $user_supplied_resolver eq 'CODE') { }
0 0 elsif (not ref $user_supplied_resolver) { }
364 0 0 unless ($path_resolver_coderef)
374 0 0 unless ($resolve_path_with or $ds_data->{'file_list'})
379 0 3 if (not ref $resolve_path_with) { }
0 3 elsif (ref $resolve_path_with eq 'CODE') { }
0 3 elsif (ref $resolve_path_with ne 'ARRAY') { }
3 0 elsif (ref $resolve_path_with eq 'ARRAY') { }
381 0 0 if ($class_name->can($resolve_path_with) or grep {$_ eq $resolve_path_with;} @{$$class_data{'has'};}) { }
398 1 2 if (ref $resolve_path_with->[0] eq 'CODE') { }
1 1 elsif (grep {$_ eq $resolve_path_with->[0];} keys %{$$class_data{'has'};}) { }
0 1 elsif ($class_name->can($resolve_path_with->[0])) { }
1 0 elsif (not ref $resolve_path_with->[0]) { }
406 0 1 unless ($ds_data->{'base_path'})
420 0 0 unless ($path_resolver_coderef)
451 0 96 unless defined $self->$param
453 0 96 if (@vals > 1) { }
471 0 4 unless ($ds_data->{'column_order'})
477 0 4 unless $file_resolver
479 3 1 if (not exists $ds_data->{'constant_values'} and @required_for_get)
487 0 6 unless $param_data
490 0 6 unless $param_column
492 6 0 unless ($columns_from_ds{$param_column})
501 16 12 if (exists $ds_data->{$param})
525 0 1 unless (ref $self)
526 0 0 if ($self->isa('UR::Singleton')) { }
540 1 0 if (ref $file_resolver ne 'CODE')
547 0 1 if ($ENV{'UR_DBI_MONITOR_SQL'})
564 0 9 unless ($value)
570 0 9 if (ref $value)
587 1 8 unless ($sub_ds)
589 0 1 unless (defined $file_path)
595 0 1 if ($ENV{'UR_DBI_MONITOR_SQL'})
612 0 9 unless ($sub_ds)
618 3 6 unless ($objects_by_datasource{$sub_ds_id})
632 0 1 if ($ENV{'UR_DBI_MONITOR_SQL'})