Condition Coverage

blib/lib/Mojo/mysql/Database/Role/LoadDataInfile.pm
Criterion Covered Total %
condition 3 61 4.9


and 3 conditions

line !l l&&!r l&&r condition
10 0 0 17 not $ENV{'MOJO_MYSQL_DATABASE_ROLE_LOAD_DATA_INFILE_NO_XS'} and eval { do { require Text::CSV_XS; 1 } }
111 0 0 0 $options->{'low_priority'} and $options->{'concurrent'}
124 0 0 0 $options->{'replace'} and $options->{'ignore'}
135 0 0 0 defined $table and $table ne ''
146 0 0 0 $partition and $ref ne 'ARRAY'
148 0 0 0 $partition && @$partition
169 0 0 0 $set and $ref ne 'ARRAY'
174 0 0 0 $set && @$set
191 0 0 0 $options->{'columns'} and @{$options->{'columns'};}
196 0 0 0 $options->{'columns'} and not @{$options->{'columns'};}
200 0 0 0 ref $_ and ref $_ eq 'HASH'
208 0 0 0 defined $header and $header ne ''
214 0 0 0 ref $_ and ref $_ eq 'HASH'
222 0 0 0 defined $column and $column ne ''

or 2 conditions

line l !l condition
28 3 16 delete $options{'database_class'} || 'Mojo::mysql::Database'
145 0 0 ref $partition // ''
158 0 0 delete $options->{'character_set'} || 'utf8'
159 0 0 delete $options->{'tempfile_open_mode'} || '>:encoding(UTF-8)'
168 0 0 ref $set // ''
197 0 0 delete $options->{'columns'} || [keys %{$$rows[0];}]

or 3 conditions

line l !l&&r !l&&!r condition
184 0 0 0 delete $options->{'rows'} || Carp::croak('rows required for load_data_infile')

xor 4 conditions

line l&&r l&&!r !l&&r !l&&!r condition
154 0 0 0 0 $options->{'character_set'} xor $options->{'tempfile_open_mode'}