Condition Coverage

blib/lib/WWW/Suffit/AuthDB/Model.pm
Criterion Covered Total %
condition 49 133 36.8


and 3 conditions

line !l l&&!r l&&r condition
1077 0 0 2 $file and -e $file
0 2 0 $file and -e $file and not -z $file
1247 0 0 3 defined $data{'address'} and length $data{'address'}
1251 0 0 3 defined $data{'username'} and length $data{'username'}
1592 4 0 0 $data{'id'} and is_integer($data{'id'})
1612 20 0 0 $data{'id'} and is_integer($data{'id'})
4 16 0 $data{'groupname'} and $data{'username'}
1892 0 0 0 defined $data{'realmname'} and length $data{'realmname'}
1896 0 0 0 defined $data{'routename'} and length $data{'routename'}
1963 0 0 0 $id and is_integer($id)

or 2 conditions

line l !l condition
1065 0 2 shift() // "authdb"
1071 0 0 $self->errstr || 'unknown error'
1139 0 0 $self->errstr || 'unknown error'
1145 2 0 $self->_get_patches($ver{'value'} || '0.00') || []
1159 3 0 $vd{'value'} || '0.00'
1223 17 2 shift() // ""
1240 2 0 shift() // ""
1265 1 0 $data{'dismiss'} || 0
1270 1 1 $data{'dismiss'} || 0
1278 6 0 shift() // ""
1279 6 0 shift() // ""
1313 8 0 $data{'algorithm'} || 'SHA256'
1322 2 0 $data{'username'} // ""
1335 2 0 $data{'algorithm'} || 'SHA256'
1360 2 0 shift() // ""
1375 19 0 shift() // ""
1404 0 0 shift() // ""
1422 0 0 shift() // ""
1439 0 0 shift() // ""
1458 1 0 $data{'username'} // ""
1501 2 0 $data{'groupname'} // ""
1514 2 0 shift() // ""
1529 9 0 shift() // ""
1558 6 0 shift() // ""
1657 1 0 $data{'realmname'} // ""
1672 2 0 shift() // ""
1687 5 0 shift() // ""
1729 4 0 shift() // ""
1813 1 0 shift() // ""
1828 2 0 shift() // ""
1857 0 0 shift() // ""
1875 3 0 shift() // ""
1944 1 1 shift() || 0
1961 0 0 shift() // 0
1990 1 0 shift() // ""

or 3 conditions

line l !l&&r !l&&!r condition
1156 0 3 0 shift() // $VERSION
1167 2 0 0 $dr eq 'sqlite' || $dr eq 'file'
1172 0 0 0 $dr eq 'mysql' || $dr eq 'mariadb' || $dr eq 'maria'
1177 0 0 0 $dr eq 'maria' || $dr eq 'mariadb'
1182 0 0 0 $dr eq 'pg' || $dr eq 'pgsql' || $dr eq 'postgres' || $dr eq 'postgresql'
1265 1 0 0 $data{'updated'} || time
1270 1 1 0 $data{'updated'} || time
1313 8 0 0 $data{'created'} || time
8 0 0 $data{'not_before'} || time
1335 1 1 0 $data{'not_before'} || time
2017 2 0 0 shift() // $VERSION