blib/lib/Zuzu/Value/Regexp.pm

filter: Statementstmt 66.6% 10 / 15 Branchbran n/a Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 33.3% 2 / 6 Podpod 0.0% 0 / 2 totaltotal 46.1% 12 / 26 CC 2 SCAR 9.6
CC
2
Cov
59%
to_String
6.0
is_truthy
2.0
__ANON__
1.1
CRAP 2.6
« blib/lib/Zuzu/Env.pm ↑ Summary blib/lib/Zuzu/Value/Boolean.pm »
1 package Zuzu::Value::Regexp;
2  
3 78 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 78 our $VERSION = '0.007002';
6  
7 78 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 0 ▶has 'pattern' => ( is => 'rw', default => sub { '' } );
Subroutine __ANON__: not called CC=1 SCAR=1.2
10 0 ▶has 'flags' => ( is => 'rw', default => sub { '' } );
Subroutine __ANON__: not called CC=1 SCAR=1.2
11  
12 0 ▶sub is_truthy { 1 }
Subroutine is_truthy: not called CC=1 SCAR=6.9
Pod undocumented
13  
14 0 ▶sub to_String {
Subroutine to_String: not called CC=2 SCAR=17.9
Pod undocumented
15 0 my ( $self ) = @_;
16  
17 0 ▶ return $self->pattern // '';
Condition0%0/2
$self->pattern // ""
l!l
00
MC/DC0%0/1
$self->pattern // ""
$self->pattern
Truth table0%0/2
A
A= $self->pattern
Aresult
11
00
18 }
19  
20 78 1;
21  
22 =pod
23  
24 =head1 COPYRIGHT AND LICENCE
25  
26 B<< Zuzu::Value::Regexp >> is copyright Toby Inkster.
27  
28 It is free software; you may redistribute it and/or modify it under
29 the terms of either the Artistic License 1.0 or the GNU General Public
30 License version 2.
31  
32 =cut
« blib/lib/Zuzu/Env.pm ↑ Summary blib/lib/Zuzu/Value/Boolean.pm »