Condition Coverage

File:lib/OpenAPI/Handler/Model.pm
Coverage:71.7%

line%coveragecondition
4750
Adec
00
11
$models ||= []
73100
ABdec
0X0
100
111
$name = delete $$data{'name'} and $name ne $model
10833
ABdec
000
011
1X1
not $list or not ref $list
11433
ABdec
000
011
1X1
not $res or not @$res
14050
Adec
00
11
$$data{'name'} || die('you must provide the new the column with a name!')
15050
Adec
00
11
$$data{'type'} || 'text'
163100
Adec
00
11
$default ||= 'null'
170100
ABdec
0X0
100
111
$alias and $alias ne $col
278100
ABdec
0X0
100
111
$column ne '~' and $value ne '~'
28167
ABdec
0X0
100
111
$column ne '~' and $value eq '~'
28467
ABdec
0X0
100
111
$column eq '~' and $value eq '~'
346100
ABdec
0X0
100
111
$columns and not _ARRAY0 $columns
394100
Adec
00
11
delete $$col{'type'} || 'text'
44567
ABdec
000
011
1X1
$default || $default eq '0'
477100
ABdec
000
011
1X1
_IDENT($model) or $model eq '~'
485100
ABdec
000
011
1X1
_IDENT($col) or $col eq '~'
49067
ABdec
0X0
100
111
@$rbits >= 3 and $model ne '~'
498100
ABdec
0X0
100
111
$model and $model ne '~'
504100
ABdec
0X0
100
111
$col and $col ne '~'
50567
ABdec
0X0
100
111
$model ne '~' and not $self->has_model_col($model, $col)
55633
ABdec
000
011
1X1
not $list or not ref $list
57333
ABdec
000
011
1X1
not $list or not ref $list
68467
ABdec
0X0
100
111
not @sub_order_by and $order_by
693100
ABCdec
0XX0
10X0
1100
1111
$dir and $dir ne 'asc' and $dir ne 'desc'
69567
ABdec
000
011
1X1
$dir || ()
720100
ABdec
0X0
100
111
lc $user_col ne 'id' and $user_col ne '~'
72967
ABdec
0X0
100
111
defined $val and $val ne '~'
730100
Adec
00
11
$$self{'_cgi'}->url_param('op') || 'eq'
75333
ABdec
0X0
100
111
not $res and not ref $res
77333
ABdec
000
011
1X1
not $list or not ref $list
81767
ABdec
0X0
100
111
$user_col ne 'id' and $user_col ne '~'
82533
ABdec
000
011
1X1
not ref $data or ref $data ne 'HASH'
83767
ABdec
0X0
100
111
defined $val and $val ne '~'
86850
Adec
00
11
$new_model ||= $model