Smooth/Lookup/Operators/lte.pm

filter: Statementstmt 89.4% 17 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 0.0% 0 / 1 totaltotal 84.6% 22 / 26 CC 1 SCAR 1.5
CC
1
Cov
89%
smooth__lookup__lte
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Smooth/Lookup/Operators/lt.pm ↑ Summary Smooth/Lookup/Operators/not_in.pm »
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::Lookup::Operators::lte;
6  
7 # ABSTRACT: Short intro
8 3 our $AUTHORITY = 'cpan:CSSON'; # AUTHORITY
9 3 our $VERSION = '0.0108';
10  
11 3 ▶use parent 'DBIx::Class::Smooth::Lookup::Util';
Subroutine BEGIN: called CC=1 SCAR=0.0
12 3 ▶use experimental qw/signatures postderef/;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 0 ▶sub smooth__lookup__lte($self, $column_name, $value, @rest) {
Subroutine smooth__lookup__lte: not called CC=1 SCAR=6.9
Pod undocumented
15 0 $self->smooth__lookup_util__ensure_value_is_scalar('lte', $value);
16  
17 0 return { sql_operator => '<=', operator => '<=', value => $value };
18 }
19  
20 3 1;
21  
22 __END__
« Smooth/Lookup/Operators/lt.pm ↑ Summary Smooth/Lookup/Operators/not_in.pm »