blib/lib/WWW/Shopify/Field/Text.pm

filter: Statementstmt 86.3% 19 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 6 / 9 Podpod 0.0% 0 / 2 totaltotal 75.7% 25 / 33 CC 1 SCAR 2.9
CC
1
Cov
86%
sql_type
2.0
generate
2.0
generate
2.0
CRAP 1.3
« blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/Order.pm ↑ Summary blib/lib/WWW/Shopify/Model/Checkout/LineItem.pm »
1 #!/usr/bin/perl
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6  
7 1 ▶use String::Random qw(random_regex random_string);
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use Data::Random;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 package WWW::Shopify::Field::Text;
11 1 ▶use parent 'WWW::Shopify::Field';
Subroutine BEGIN: called CC=1 SCAR=0.0
12 0 ▶sub sql_type { return "text"; }
Subroutine sql_type: not called CC=1 SCAR=6.9
Pod undocumented
13 sub generate($) {
14 0 ▶ return join(" ", ::rand_words( size => int(rand(1000))+1 ));
Subroutine generate: not called CC=1 SCAR=6.9
Pod undocumented
15 }
16  
17 package WWW::Shopify::Field::Text::HTML;
18 1 ▶use parent 'WWW::Shopify::Field::Text';
Subroutine BEGIN: called CC=1 SCAR=0.0
19 sub generate($) {
20 0 ▶ return "<html>" . WWW::Shopify::Field::Text::generate($_[0]) . "</html>";
Subroutine generate: not called CC=1 SCAR=6.9
21 }
22  
23 1 1;
« blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/Order.pm ↑ Summary blib/lib/WWW/Shopify/Model/Checkout/LineItem.pm »