SQLEngine/Criteria/StringComparison.pm

filter: Statementstmt 100% 12 / 12 Branchbran 50.0% 1 / 2 Conditioncond 50.0% 1 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 100% 4 / 4 Podpod 100% 1 / 1 totaltotal 86.3% 19 / 22 CC 3 SCAR 8.3
CC
3
Cov
88%
sql_comparator
3.6
BEGIN
1.0
BEGIN
1.0
CRAP 2.3
« SQLEngine/Driver/Trait/DatabaseFlavors.pm ↑ Summary SQLEngine/Criteria/Greater.pm »
1 package DBIx::SQLEngine::Criteria::StringComparison;
2  
3 7 ▶use DBIx::SQLEngine::Criteria::Comparison;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 7 @ISA = 'DBIx::SQLEngine::Criteria::Comparison';
5 7 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 7 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 47 ▶sub sql_comparator {
Subroutine sql_comparator: called CC=3 SCAR=12.7
Pod documented
9 47 ▶ ( ( (shift)->compv || '' ) =~ /%/ ) ? 'like' : '='
Branch: 1 branch
BranchTrueFalseTotal
((shift())->compv || '') =~ /%/ ? : 0 47 47
Condition50%1/2
(shift())->compv || ''
l!l
470
MC/DC0%0/1
(shift())->compv || ''
(shift())->compv
Truth table50%1/2
A
A= (shift())->compv
Aresult
11
00
10 }
11  
12 7 1;
13  
14 __END__
« SQLEngine/Driver/Trait/DatabaseFlavors.pm ↑ Summary SQLEngine/Criteria/Greater.pm »