| line |
true |
false |
branch |
|
29
|
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) ? : |
|
61
|
1 |
5 |
exists $attr->{'-header'} ? : |
|
63
|
1 |
5 |
if (scalar keys @$header_attr) |
|
65
|
1 |
0 |
if ($attr eq 'buttongroup') |
|
71
|
4 |
2 |
defined $title ? : |
|
87
|
6 |
0 |
ref $_[-1] eq 'CODE' ? : |
|
88
|
2 |
4 |
scalar @_ % 2 ? : |
|
100
|
2 |
4 |
if (defined $title) |
|
104
|
2 |
4 |
defined $title ? : |
|
109
|
0 |
231 |
unless defined $attr |
|
113
|
231 |
0 |
if defined $html |
|
119
|
7 |
4 |
scalar @_ % 2 ? : |
|
|
1 |
11 |
ref $_[-1] eq 'CODE' ? : |
|
124
|
2 |
10 |
if ref $attr->{'cols'} eq 'HASH' |
|
127
|
8 |
4 |
defined $title ? : |
|
145
|
1 |
50 |
ref $_[-1] eq 'CODE' ? : |
|
146
|
2 |
49 |
unless defined $content |
|
148
|
12 |
39 |
if ref $_[0] eq 'ARRAY' |
|
151
|
8 |
2 |
length $content ? : |
|
|
10 |
41 |
exists $attr->{'__caret'} && $attr->{'__caret'} ? : |
|
153
|
23 |
16 |
unless scalar @url or exists $attr->{'type'} |
|
155
|
1 |
50 |
if $attr->{'__active'} |
|
156
|
1 |
50 |
if $attr->{'__block'} |
|
161
|
12 |
39 |
if (scalar @url) { } |
|
203
|
1 |
10 |
ref $_[0] eq 'ARRAY' ? : |
|
207
|
2 |
9 |
exists $attr->{'__right'} ? : |
|
228
|
2 |
10 |
if $attr->{'__right'} |
|
234
|
1 |
48 |
if (ref $item eq '') |
|
237
|
1 |
48 |
if ref $item ne 'ARRAY' |
|
238
|
12 |
36 |
if (not scalar @$item) { } |
|
256
|
0 |
36 |
iscoderef($_[-1]) ? : |
|
261
|
1 |
35 |
exists $attr->{'__disabled'} ? : |
|
278
|
2 |
9 |
if (ref $_[0] eq 'ARRAY') |
|
299
|
1 |
9 |
delete $attr->{'__vertical'} ? : |
|
300
|
2 |
8 |
delete $attr->{'__justified'} ? : |
|
318
|
0 |
29 |
if ref $button ne 'ARRAY' |
|
321
|
6 |
23 |
ref $button->[0] eq 'ARRAY' ? : |
|
325
|
23 |
6 |
unless (scalar @$items) |
|
329
|
3 |
20 |
if (length $justified_class and not scalar @url) { } |
|
338
|
1 |
5 |
delete $button_attr->{'__dropup'} ? : |
|
341
|
1 |
5 |
scalar @url ? : |
|
388
|
2 |
8 |
$key eq 'p' ? : |
|
|
2 |
10 |
$key eq 'button' ? : |
|
|
3 |
12 |
$key eq 'form' ? : |
|
|
5 |
15 |
$key eq 'nav' ? : |
|
394
|
5 |
15 |
if ($key eq 'header') |
|
397
|
2 |
18 |
if ($key eq '__inverse') |
|
400
|
1 |
19 |
if ($key eq 'container') |
|
405
|
1 |
4 |
$container eq 'normal' ? : |
|
407
|
2 |
3 |
$has_inverse ? : |
|
410
|
4 |
1 |
if (length $content_html) |
|
433
|
0 |
5 |
if $html_header |
|
440
|
5 |
0 |
$has_hamburger ? : |
|
443
|
5 |
0 |
defined $brand ? : |
|
489
|
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') { } |
|
545
|
0 |
18 |
if ref $content ne 'ARRAY' |
|
553
|
14 |
4 |
if (not scalar @$items) { } |
|
556
|
2 |
12 |
exists $attr->{'-li'} ? : |
|
557
|
4 |
10 |
$active ? : |
|
|
1 |
13 |
$disabled ? : |
|
570
|
4 |
0 |
delete $attr->{'__caret'} ? : |
|
577
|
5 |
15 |
unless (scalar @$item) |
|
607
|
1 |
0 |
$tabs ? : |
|
|
1 |
1 |
$pills ? : |
|
611
|
1 |
1 |
delete $attr->{'__justified'} ? : |
|
624
|
0 |
3 |
iscoderef($_[-1]) ? : |
|
630
|
3 |
0 |
defined $content && length $content ? : |
|
647
|
0 |
4 |
unless defined $icon and length $icon |
|
664
|
3 |
2 |
if ($prepend) |
|
667
|
3 |
2 |
if ($append) |
|
688
|
1 |
5 |
if (ref $ender eq '') |
|
694
|
2 |
3 |
if ($key eq 'check_box' or $key eq 'radio_button') { } |
|
|
1 |
2 |
elsif ($key eq 'button') { } |
|
|
2 |
0 |
elsif ($key eq 'buttongroup') { } |
|
695
|
1 |
1 |
$key eq 'check_box' ? : |
|
708
|
0 |
2 |
if ref $ender->{$key} ne 'ARRAY' |
|
710
|
1 |
1 |
scalar @{$ender->{$key}} == 1 ? : |
|
727
|
0 |
86 |
if ref $url ne 'ARRAY' |
|
728
|
43 |
43 |
if scalar @$url == 1 and substr($url->[0], 0, 1) eq '#' |
|
739
|
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'}) { } |
|
750
|
2 |
15 |
if (@$info % 2) |
|
758
|
17 |
0 |
if defined $id and not exists $tag_attr->{'id'} |
|
759
|
17 |
0 |
defined $id ? : |
|
763
|
2 |
15 |
scalar @column_classes ? : |
|
764
|
2 |
15 |
scalar @column_classes ? : |
|
765
|
1 |
16 |
exists $attr->{'text_area'} ? : |
|
781
|
1 |
7 |
ref $title eq 'CODE' ? : |
|
789
|
3 |
1 |
ref $_[-1] eq 'CODE' ? : |
|
790
|
0 |
4 |
scalar @_ % 2 ? : |
|
798
|
9 |
217 |
if ($attr{'data'} and ref $attr{'data'} eq 'HASH') |
|
815
|
6 |
0 |
if (defined $correct_name) |
|
824
|
127 |
121 |
ref $_[-1] eq 'HASH' ? : |
|
830
|
127 |
121 |
if ($formatter) |
|
831
|
95 |
32 |
if (exists $formatter->{'size'}) |
|
834
|
51 |
76 |
if (exists $formatter->{'button'}) |
|
837
|
6 |
121 |
if (exists $formatter->{'panel'}) |
|
840
|
6 |
121 |
if (exists $formatter->{'table'}) |
|
843
|
15 |
112 |
if (exists $formatter->{'direction'}) |
|
846
|
5 |
122 |
if (exists $formatter->{'navbar'}) |
|
866
|
93 |
52 |
unless scalar @founds or defined $default |
|
867
|
52 |
33 |
unless scalar @founds |
|
877
|
3 |
35 |
if (exists $attr->{'__disabled'} and $attr->{'__disabled'}) |
|
878
|
2 |
1 |
if ($add_as_class) { } |
|
892
|
3 |
1 |
defined $callback ? : |
|
898
|
1 |
50 |
ref $content eq 'CODE' ? : |
|
908
|
518 |
0 |
if $_ ne 'data' |