| 1 | 3 | ▶ | use 5.20.0; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 2 | 3 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 3 | 3 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 4 | |||||||||||||
| 5 | package DBIx::Class::Smooth::Result; | ||||||||||||
| 6 | |||||||||||||
| 7 | # ABSTRACT: Short intro | ||||||||||||
| 8 | 3 | our $AUTHORITY = 'cpan:CSSON'; # AUTHORITY | |||||||||||
| 9 | 3 | our $VERSION = '0.0104'; | |||||||||||
| 10 | |||||||||||||
| 11 | 3 | ▶ | use parent 'DBIx::Class::Candy'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 12 | 3 | ▶ | use String::CamelCase; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 13 | |||||||||||||
| 14 | 3 | ▶ | 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"
MC/DC0%0/1
$_[1] || "${base}::Schema::Result"
$_[1]
Truth table0%0/2
A
A= $_[1]
| |||||||||||||
| 20 | } | ||||||||||||
| 21 | 8 | ▶ | 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 | 8 | $resultclass =~ s{^.*::Schema::Result::}{}; | |||||||||||
| 27 | 8 | $resultclass =~ s{::}{__}g; | |||||||||||
| 28 | 8 | $resultclass = String::CamelCase::decamelize($resultclass); | |||||||||||
| 29 | |||||||||||||
| 30 | 8 | return $resultclass; | |||||||||||
| 31 | } | ||||||||||||
| 32 | |||||||||||||
| 33 | 3 | 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.0104, released 2020-08-30. | ||||||||||||
| 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 | ||||||||||||