Smooth/Lookup/DateTime/day.pm

filter: Statementstmt 94.4% 17 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 0.0% 0 / 1 totaltotal 88.0% 22 / 25 CC 1 SCAR 1.5
CC
1
Cov
94%
smooth__lookup__day
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Smooth/Lookup/Operators/not_in.pm ↑ Summary Smooth/Lookup/DateTime/hour.pm »
1 4 ▶use 5.20.0;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 package DBIx::Class::Smooth::Lookup::DateTime::day;
6  
7 # ABSTRACT: Short intro
8 4 our $AUTHORITY = 'cpan:CSSON'; # AUTHORITY
9 4 our $VERSION = '0.0104';
10  
11 4 ▶use parent 'DBIx::Class::Smooth::Lookup::DateTime::datepart';
Subroutine BEGIN: called CC=1 SCAR=0.0
12 4 ▶use experimental qw/signatures postderef/;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 ▶sub smooth__lookup__day($self, $column_name, $value, @rest) {
Subroutine smooth__lookup__day: not called CC=1 SCAR=6.9
Pod undocumented
15 0 return $self->smooth__lookup__datepart($column_name, $value, ['day_of_month']);
16 }
17  
18 4 1;
19  
20 __END__
21  
22 =pod
23  
24 =encoding UTF-8
25  
26 =head1 NAME
27  
28 DBIx::Class::Smooth::Lookup::DateTime::day - Short intro
29  
30 =head1 VERSION
31  
32 Version 0.0104, released 2020-08-30.
33  
34 =head1 SOURCE
35  
36 L<https://github.com/Csson/p5-DBIx-Class-Smooth>
37  
38 =head1 HOMEPAGE
39  
40 L<https://metacpan.org/release/DBIx-Class-Smooth>
41  
42 =head1 AUTHOR
43  
44 Erik Carlsson <info@code301.com>
45  
46 =head1 COPYRIGHT AND LICENSE
47  
48 This software is copyright (c) 2018 by Erik Carlsson.
49  
50 This is free software; you can redistribute it and/or modify it under
51 the same terms as the Perl 5 programming language system itself.
52  
53 =cut
« Smooth/Lookup/Operators/not_in.pm ↑ Summary Smooth/Lookup/DateTime/hour.pm »