Condition Coverage

blib/lib/Quiki.pm
Criterion Covered Total %
condition 0 95 0.0


and 3 conditions

line !l l&&!r l&&r condition
114 0 0 0 $action eq 'save_profile' and param('submit') =~ /^Save/
115 0 0 0 param('new_password1') and param('new_password1') ne param('new_password2')
131 0 0 0 param("filename$i") and param("name$i")
135 0 0 0 mkdir $path and chown 511, $path
149 0 0 0 $action eq 'register' and param('submit_opt') eq 'Register'
152 0 0 0 $username and $email
0 0 0 $username and $email and $email =~ /\@/
172 0 0 0 $username and $password
0 0 0 $username and $password and 'Quiki::Users'->auth($username, $password)
173 0 0 0 $$self{'session'}->param('authenticated', 1) and $$self{'session'}->param('username', $username)
184 0 0 0 $$self{'session'}->param('authenticated') and $$self{'session'}->param('authenticated', 0)
0 0 0 $$self{'session'}->param('authenticated') and $$self{'session'}->param('authenticated', 0) and $$self{'session'}->param('username', '')
191 0 0 0 $action eq 'create' and -f "data/content/$node"
197 0 0 0 $action eq 'edit' and 'Quiki::Pages'->locked($node, $$self{'sid'})
205 0 0 0 $action eq 'save' and param('submit_opt') eq 'Save'
250 0 0 0 $action eq 'save' and param('submit_opt') eq 'Preview'
254 0 0 0 $action eq 'save' and param('submit_opt') eq 'Cancel'

or 2 conditions

line l !l condition
83 0 0 cookie($$self{'QUIKI_ID'}) || undef
88 0 0 param('action') || ''
150 0 0 param('username') || ''
151 0 0 param('email') || ''
170 0 0 param('username') || ''
171 0 0 param('password') || ''
263 0 0 $$self{'theme'} || 'default'
267 0 0 $$self{'rev'} || 0
0 0 $$self{'meta'}{'rev'} || 0
344 0 0 param('source') || 1
345 0 0 param('target') || 1
365 0 0 $$self{'meta'}{'last_updated_in'} || ''
372 0 0 $$self{'rev'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
87 0 0 0 param('node') || $$self{'index'}
192 0 0 0 $action eq 'create' or not -f "data/content/$node"
218 0 0 0 param('rev') || $$self{'meta'}{'rev'}
220 0 0 0 not $$self{'rev'} =~ /\d+/ or $$self{'rev'} < 0
0 0 0 not $$self{'rev'} =~ /\d+/ or $$self{'rev'} < 0 or $$self{'rev'} > $$self{'meta'}{'rev'}
354 0 0 0 $action eq 'save' or $action eq 'rollback'