lib/HTML/FormFu/Literal.pm

filter: Statementstmt 100% 24 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod 0.0% 0 / 3 totaltotal 91.4% 32 / 35 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/HTML/FormFu/Role/GetProcessors.pm ↑ Summary lib/HTML/FormFu/I18N.pm »
1 407 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2  
3 package HTML::FormFu::Literal;
4 407 $HTML::FormFu::Literal::VERSION = '2.06';
5 407 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 407 ▶use HTML::FormFu::Constants qw( $EMPTY_STR );
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 use overload
10 102 ▶ '""' => sub { return join $EMPTY_STR, @{ $_[0] } },
Subroutine __ANON__: called CC=1 SCAR=0.0
11 407 ▶ fallback => 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 sub new {
14 70 ▶ my $class = shift;
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
15  
16 70 return bless \@_, $class;
17 }
18  
19 sub push {
20 4 ▶ my ( $self, @args ) = @_;
Subroutine push: called CC=1 SCAR=0.0
Pod undocumented
21  
22 4 CORE::push( @{ $_[0] }, @args );
23 }
24  
25 sub unshift {
26 1 ▶ my ( $self, @args ) = @_;
Subroutine unshift: called CC=1 SCAR=0.0
Pod undocumented
27  
28 1 CORE::unshift( @{ $_[0] }, @args );
29 }
30  
31 407 1;
32  
33 __END__
34  
35 =pod
36  
37 =encoding UTF-8
38  
39 =head1 NAME
40  
41 HTML::FormFu::Literal
42  
43 =head1 VERSION
44  
45 version 2.06
46  
47 =head1 AUTHOR
48  
49 Carl Franks <cpan@fireartist.com>
50  
51 =head1 COPYRIGHT AND LICENSE
52  
53 This software is copyright (c) 2018 by Carl Franks.
54  
55 This is free software; you can redistribute it and/or modify it under
56 the same terms as the Perl 5 programming language system itself.
57  
58 =cut
« lib/HTML/FormFu/Role/GetProcessors.pm ↑ Summary lib/HTML/FormFu/I18N.pm »