Condition Coverage

blib/lib/App/Yabsm/Config/Parser.pm
Criterion Covered Total %
condition 24 41 58.5


or 2 conditions

line l !l condition
61 37 0 shift() // "/etc/yabsm.conf"
196 16 20 shift() // 1
219 16 10 shift() // 1
244 16 9 shift() // 1

or 3 conditions

line l !l&&r !l&&!r condition
287 35 0 0 $self->maybe_expect("=") // $self->fail("expected '='")
288 35 0 0 $self->maybe_expect($grammar{'dir'}) // $self->fail(grammar_msg()->{'dir'})
295 39 0 0 $name // $self->fail("expected subvol name")
307 22 1 0 $name // $self->fail("expected snap name")
319 11 1 0 $name // $self->fail("expected ssh_backup name")
331 9 1 0 $name // $self->fail("expected local_backup name")
373 218 8 0 $self->maybe_expect(qr/$setting_regex/u) // $self->fail("expected a $type setting")
376 218 0 0 $self->maybe_expect("=") // $self->fail("expected \"=\"")
379 214 4 0 $self->maybe_expect($grammar->{$setting}) // $self->fail("expected " . grammar_msg()->{$setting})
436 15 0 1 $config_ref->{'snaps'} or $config_ref->{'ssh_backups'}
0 0 1 $config_ref->{'snaps'} or $config_ref->{'ssh_backups'} or $config_ref->{'local_backups'}