blib/lib/Dallycot/AST/Decreasing.pm

filter: Statementstmt 63.6% 14 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 57.1% 4 / 7 Podpod 0.0% 0 / 3 totaltotal 56.2% 18 / 32 CC 1 SCAR 3.6
CC
1
Cov
64%
to_string
2.0
to_rdf
2.0
compare
2.0
CRAP 1.4
« blib/lib/Dallycot/AST/LibraryFunction.pm ↑ Summary blib/lib/Dallycot/AST/Increasing.pm »
1 package Dallycot::AST::Decreasing;
2 29 our $AUTHORITY = 'cpan:JSMITH';
3  
4 # ABSTRACT: Test that all values are in decreasing order
5  
6 29 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 29 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 29 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 29 ▶use parent 'Dallycot::AST::ComparisonBase';
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 sub to_string {
13 0 ▶ my ($self) = @_;
Subroutine to_string: not called CC=1 SCAR=6.9
Pod undocumented
14  
15 0 return join( " >= ", map { $_->to_string } @{$self} );
16 }
17  
18 sub to_rdf {
19 0 ▶ my($self, $model) = @_;
Subroutine to_rdf: not called CC=1 SCAR=6.9
Pod undocumented
20  
21 0 return $model -> apply(
22 $model -> meta_uri('loc:all-decreasing'),
23 [ @$self ]
24 );
25 }
26  
27 sub compare {
28 0 ▶ my ( $self, $engine, $left_value, $right_value ) = @_;
Subroutine compare: not called CC=1 SCAR=6.9
Pod undocumented
29  
30 0 return $left_value->is_greater_or_equal( $engine, $right_value );
31 }
32  
33 29 1;
« blib/lib/Dallycot/AST/LibraryFunction.pm ↑ Summary blib/lib/Dallycot/AST/Increasing.pm »