Condition Coverage

blib/lib/PDF/Make/Builder/Page/HeaderFooterContext.pm
Criterion Covered Total %
condition 75 113 66.3


and 3 conditions

line !l l&&!r l&&r condition
74 0 1 8 defined $txt and length $txt
138 4 0 1 $args{'from'} and $args{'to'}
239 1 0 1 defined $x and defined $y
1 0 1 defined $x and defined $y and defined $w
0 0 1 defined $x and defined $y and defined $w and defined $h

or 2 conditions

line l !l condition
34 1 0 $offset //= 0
83 7 1 $args{'align'} // "left"
107 1 1 ($args{'format'} // $args{'text'}) // "Page {num}"
115 1 3 $args{'font'} // {}
121 0 4 $font->{'size'} // 8
0 4 $font->{'colour'} // "#666"
129 3 1 $args{'align'} // "right"
147 0 2 ($args{'colour'} // $args{'fill_colour'}) // "#000"
152 1 4 $args{'width'} // 1
154 2 3 $args{'type'} // "solid"
173 0 0 ($args{'fill_colour'} // $args{'colour'}) // "#000"
180 1 0 $args{'width'} // 1
216 3 2 $args{'align'} // "left"
247 2 0 $args{'text'} // ""
248 1 1 $args{'icon'} // "Note"
249 0 2 $args{'open'} // 0
260 0 8 $args{'highlight'} // "Invert"
270 0 2 $args{'file_page'} // 0
0 2 $args{'new_window'} // 0

or 3 conditions

line l !l&&r !l&&!r condition
57 5 0 0 $override->{'colour'} // $base->colour
5 0 0 $override->{'size'} // $base->size
2 3 0 $override->{'family'} // $base->family
2 0 3 $override->{'bold'} // $base->bold
2 0 3 $override->{'italic'} // $base->italic
1 4 0 $override->{'line_height'} // $base->effective_line_height
107 2 1 1 $args{'format'} // $args{'text'}
142 1 0 3 $args{'x1'} // $self->left
143 1 3 0 $args{'y1'} // $self->bottom
144 1 3 0 $args{'x2'} // $self->right
145 1 3 0 $args{'y2'} // $y1
147 3 0 2 $args{'colour'} // $args{'fill_colour'}
169 1 0 1 $args{'x'} // $self->left
170 1 1 0 $args{'y'} // $self->bottom
171 1 1 0 $args{'w'} // $self->w
172 1 1 0 $args{'h'} // $self->h
173 2 0 0 $args{'fill_colour'} // $args{'colour'}
195 4 1 1 $args{'src'} // $args{'image'}
207 3 1 1 defined $draw_w || defined $draw_h
224 1 4 0 $args{'y'} // $self->bottom + ($self->h - $draw_h) / 2