Branch Coverage

blib/lib/Log/Minimal/Instance.pm
Criterion Covered Total %
branch 45 58 77.5


line true false branch
17 10 20 $suffix eq 'd' ? :
25 0 19 $suffix eq 'd' ? :
35 6 7 exists $args{'pattern'} ? :
36 2 11 exists $args{'symlink'} ? :
37 3 10 exists $args{'base_dir'} ? :
38 2 11 exists $args{'iomode'} ? :
39 2 11 exists $args{'rotationtime'} ? :
40 2 11 exists $args{'autoflush'} ? :
41 2 11 exists $args{'close_after_write'} ? :
42 0 13 exists $args{'auto_make_dir'} ? :
43 0 13 exists $args{'callback'} ? :
46 6 7 if ($pattern) { }
49 6 0 defined $pattern ? :
0 6 defined $callback ? :
2 4 defined $symlink ? :
83 3 5 if (ref $opts eq 'ARRAY') { }
3 2 elsif (not ref $opts) { }
94 1 7 defined $$opts{'base_dir'} ? :
97 0 8 exists $$opts{'callback'} ? :
99 8 0 defined $pattern ? :
0 8 defined $callback ? :
5 3 defined $symlink ? :
0 8 defined $$opts{'iomode'} ? :
0 8 defined $$opts{'autoflush'} ? :
0 8 defined $$opts{'close_after_write'} ? :
0 8 defined $$opts{'rotationtime'} ? :
0 8 defined $$opts{'auto_make_dir'} ? :
123 7 21 unless defined $pattern
125 6 15 unless ('File::Spec'->file_name_is_absolute($pattern))