| line |
true |
false |
branch |
|
27
|
1 |
0 |
$arg eq 'allq' ? : |
|
|
1 |
1 |
$arg eq 'all' ? : |
|
|
1 |
2 |
$arg eq 'jsq' ? : |
|
|
1 |
3 |
$arg eq 'js' ? : |
|
|
1 |
4 |
$arg eq 'css' ? : |
|
|
1 |
5 |
!defined($arg) ? : |
|
59
|
1 |
5 |
exists $attr->{'-header'} ? : |
|
61
|
1 |
5 |
if (scalar keys @$header_attr) |
|
63
|
1 |
0 |
if ($attr eq 'buttongroup') |
|
69
|
4 |
2 |
defined $title ? : |
|
85
|
6 |
0 |
ref $_[-1] eq 'CODE' ? : |
|
86
|
2 |
4 |
scalar @_ % 2 ? : |
|
98
|
2 |
4 |
if (defined $title) |
|
102
|
2 |
4 |
defined $title ? : |
|
107
|
0 |
231 |
unless defined $attr |
|
111
|
231 |
0 |
if defined $html |
|
117
|
7 |
4 |
scalar @_ % 2 ? : |
|
|
1 |
11 |
ref $_[-1] eq 'CODE' ? : |
|
122
|
2 |
10 |
if ref $attr->{'cols'} eq 'HASH' |
|
125
|
8 |
4 |
defined $title ? : |
|
143
|
1 |
50 |
ref $_[-1] eq 'CODE' ? : |
|
144
|
2 |
49 |
unless defined $content |
|
146
|
12 |
39 |
if ref $_[0] eq 'ARRAY' |
|
149
|
8 |
2 |
length $content ? : |
|
|
10 |
41 |
exists $attr->{'__caret'} && $attr->{'__caret'} ? : |
|
151
|
23 |
16 |
unless scalar @url or exists $attr->{'type'} |
|
153
|
1 |
50 |
if $attr->{'__active'} |
|
154
|
1 |
50 |
if $attr->{'__block'} |
|
159
|
12 |
39 |
if (scalar @url) { } |
|
201
|
1 |
10 |
ref $_[0] eq 'ARRAY' ? : |
|
205
|
2 |
9 |
exists $attr->{'__right'} ? : |
|
226
|
2 |
10 |
if $attr->{'__right'} |
|
232
|
1 |
48 |
if (ref $item eq '') |
|
235
|
1 |
48 |
if ref $item ne 'ARRAY' |
|
236
|
12 |
36 |
if (not scalar @$item) { } |
|
254
|
0 |
36 |
iscoderef($_[-1]) ? : |
|
259
|
1 |
35 |
exists $attr->{'__disabled'} ? : |
|
276
|
2 |
9 |
if (ref $_[0] eq 'ARRAY') |
|
297
|
1 |
9 |
delete $attr->{'__vertical'} ? : |
|
298
|
2 |
8 |
delete $attr->{'__justified'} ? : |
|
316
|
0 |
29 |
if ref $button ne 'ARRAY' |
|
319
|
6 |
23 |
ref $button->[0] eq 'ARRAY' ? : |
|
323
|
23 |
6 |
unless (scalar @$items) |
|
327
|
3 |
20 |
if (length $justified_class and not scalar @url) { } |
|
336
|
1 |
5 |
delete $button_attr->{'__dropup'} ? : |
|
339
|
1 |
5 |
scalar @url ? : |
|
386
|
2 |
8 |
$key eq 'p' ? : |
|
|
2 |
10 |
$key eq 'button' ? : |
|
|
3 |
12 |
$key eq 'form' ? : |
|
|
5 |
15 |
$key eq 'nav' ? : |
|
392
|
5 |
15 |
if ($key eq 'header') |
|
395
|
2 |
18 |
if ($key eq '__inverse') |
|
398
|
1 |
19 |
if ($key eq 'container') |
|
403
|
1 |
4 |
$container eq 'normal' ? : |
|
405
|
2 |
3 |
$has_inverse ? : |
|
408
|
4 |
1 |
if (length $content_html) |
|
431
|
0 |
5 |
if $html_header |
|
438
|
5 |
0 |
$has_hamburger ? : |
|
441
|
5 |
0 |
defined $brand ? : |
|
487
|
3 |
3 |
if ($key eq 'formgroup') { } |
|
|
3 |
0 |
elsif ($key eq 'submit_button') { } |
|
|
0 |
0 |
elsif ($key eq 'button') { } |
|
|
0 |
0 |
elsif ($key eq 'input') { } |
|
506
|
0 |
2 |
unless @_ <= 2 |
|
|
0 |
2 |
unless @_ >= 2 |
|
514
|
0 |
2 |
unless @_ <= 2 |
|
|
0 |
2 |
unless @_ >= 2 |
|
543
|
0 |
18 |
if ref $content ne 'ARRAY' |
|
551
|
14 |
4 |
if (not scalar @$items) { } |
|
554
|
2 |
12 |
exists $attr->{'-li'} ? : |
|
555
|
4 |
10 |
$active ? : |
|
|
1 |
13 |
$disabled ? : |
|
568
|
4 |
0 |
delete $attr->{'__caret'} ? : |
|
575
|
5 |
15 |
unless (scalar @$item) |
|
605
|
1 |
0 |
$tabs ? : |
|
|
1 |
1 |
$pills ? : |
|
609
|
1 |
1 |
delete $attr->{'__justified'} ? : |
|
622
|
0 |
3 |
iscoderef($_[-1]) ? : |
|
628
|
3 |
0 |
defined $content && length $content ? : |
|
645
|
0 |
4 |
unless defined $icon and length $icon |
|
662
|
3 |
2 |
if ($prepend) |
|
665
|
3 |
2 |
if ($append) |
|
686
|
1 |
5 |
if (ref $ender eq '') |
|
692
|
2 |
3 |
if ($key eq 'check_box' or $key eq 'radio_button') { } |
|
|
1 |
2 |
elsif ($key eq 'button') { } |
|
|
2 |
0 |
elsif ($key eq 'buttongroup') { } |
|
693
|
1 |
1 |
$key eq 'check_box' ? : |
|
706
|
0 |
2 |
if ref $ender->{$key} ne 'ARRAY' |
|
708
|
1 |
1 |
scalar @{$ender->{$key}} == 1 ? : |
|
725
|
0 |
86 |
if ref $url ne 'ARRAY' |
|
726
|
43 |
43 |
if scalar @$url == 1 and substr($url->[0], 0, 1) eq '#' |
|
737
|
16 |
1 |
if ((grep {exists $$attr{"${_}_field"};} 'date', 'datetime', 'month', 'time', 'week', 'color', 'email', 'number', 'range', 'search', 'tel', 'text', 'url', 'password')[0]) { } |
|
|
1 |
0 |
elsif (exists $attr->{'text_area'}) { } |
|
748
|
2 |
15 |
if (@$info % 2) |
|
756
|
17 |
0 |
if defined $id and not exists $tag_attr->{'id'} |
|
757
|
17 |
0 |
defined $id ? : |
|
761
|
2 |
15 |
scalar @column_classes ? : |
|
762
|
2 |
15 |
scalar @column_classes ? : |
|
763
|
1 |
16 |
exists $attr->{'text_area'} ? : |
|
779
|
1 |
7 |
ref $title eq 'CODE' ? : |
|
787
|
3 |
1 |
ref $_[-1] eq 'CODE' ? : |
|
788
|
0 |
4 |
scalar @_ % 2 ? : |
|
796
|
9 |
217 |
if ($attr{'data'} and ref $attr{'data'} eq 'HASH') |
|
813
|
6 |
0 |
if (defined $correct_name) |
|
822
|
127 |
121 |
ref $_[-1] eq 'HASH' ? : |
|
828
|
127 |
121 |
if ($formatter) |
|
829
|
95 |
32 |
if (exists $formatter->{'size'}) |
|
832
|
51 |
76 |
if (exists $formatter->{'button'}) |
|
835
|
6 |
121 |
if (exists $formatter->{'panel'}) |
|
838
|
6 |
121 |
if (exists $formatter->{'table'}) |
|
841
|
15 |
112 |
if (exists $formatter->{'direction'}) |
|
844
|
5 |
122 |
if (exists $formatter->{'navbar'}) |
|
864
|
93 |
52 |
unless scalar @founds or defined $default |
|
865
|
52 |
33 |
unless scalar @founds |
|
875
|
3 |
35 |
if (exists $attr->{'__disabled'} and $attr->{'__disabled'}) |
|
876
|
2 |
1 |
if ($add_as_class) { } |
|
890
|
3 |
1 |
defined $callback ? : |
|
896
|
1 |
50 |
ref $content eq 'CODE' ? : |
|
906
|
518 |
0 |
if $_ ne 'data' |