Smooth/Result.pm

filter: Statementstmt 86.2% 25 / 29 Branchbran n/a Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 72.7% 8 / 11 Podpod 0.0% 0 / 5 totaltotal 68.7% 33 / 48 CC 2 SCAR 6.9
CC
2
Cov
81%
base
6.0
perl_version
2.0
experimental
2.0
CRAP 2.0
« Smooth/Helper/Util.pm ↑ Summary Smooth/Flatten/DateTime.pm »
1 2 ▶use 5.20.0;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 package DBIx::Class::Smooth::Result;
6  
7 # ABSTRACT: Short intro
8 2 our $AUTHORITY = 'cpan:CSSON'; # AUTHORITY
9 2 our $VERSION = '0.0105';
10  
11 2 ▶use parent 'DBIx::Class::Candy';
Subroutine BEGIN: called CC=1 SCAR=0.0
12 2 ▶use String::CamelCase;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 2 ▶use experimental qw/signatures/;
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 sub base {
17 0 ▶ (my $base = caller(2)) =~ s{::Schema::Result::.*$}{};
Subroutine base: not called CC=2 SCAR=17.9
Pod undocumented
18  
19 0 ▶ return $_[1] || "${base}::Schema::Result";
Condition0%0/2
$_[1] || "${base}::Schema::Result"
l!l
00
MC/DC0%0/1
$_[1] || "${base}::Schema::Result"
$_[1]
Truth table0%0/2
A
A= $_[1]
Aresult
11
00
20 }
21 5 ▶sub autotable { 1 }
Subroutine autotable: called CC=1 SCAR=0.0
Pod undocumented
22 0 ▶sub perl_version { 20 }
Subroutine perl_version: not called CC=1 SCAR=6.9
Pod undocumented
23 0 ▶sub experimental { [ ] }
Subroutine experimental: not called CC=1 SCAR=6.9
Pod undocumented
24  
25 ▶sub gen_table($self, $resultclass, $version) {
Subroutine gen_table: called CC=1 SCAR=0.0
Pod undocumented
26 5 $resultclass =~ s{^.*::Schema::Result::}{};
27 5 $resultclass =~ s{::}{__}g;
28 5 $resultclass = String::CamelCase::decamelize($resultclass);
29  
30 5 return $resultclass;
31 }
32  
33 2 1;
34  
35 __END__
36  
37 =pod
38  
39 =encoding UTF-8
40  
41 =head1 NAME
42  
43 DBIx::Class::Smooth::Result - Short intro
44  
45 =head1 VERSION
46  
47 Version 0.0105, released 2020-09-20.
48  
49 =head1 SOURCE
50  
51 L<https://github.com/Csson/p5-DBIx-Class-Smooth>
52  
53 =head1 HOMEPAGE
54  
55 L<https://metacpan.org/release/DBIx-Class-Smooth>
56  
57 =head1 AUTHOR
58  
59 Erik Carlsson <info@code301.com>
60  
61 =head1 COPYRIGHT AND LICENSE
62  
63 This software is copyright (c) 2018 by Erik Carlsson.
64  
65 This is free software; you can redistribute it and/or modify it under
66 the same terms as the Perl 5 programming language system itself.
67  
68 =cut
« Smooth/Helper/Util.pm ↑ Summary Smooth/Flatten/DateTime.pm »