blib/lib/Dallycot/AST/Increasing.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/Decreasing.pm ↑ Summary blib/lib/Dallycot/AST/FullPlaceholder.pm »
1 package Dallycot::AST::Increasing;
2 29 our $AUTHORITY = 'cpan:JSMITH';
3  
4 # ABSTRACT: Test if all values are in increasing 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 0 return join( " <= ", map { $_->to_string } @{$self} );
15 }
16  
17 sub to_rdf {
18 0 ▶ my($self, $model) = @_;
Subroutine to_rdf: not called CC=1 SCAR=6.9
Pod undocumented
19  
20 0 return $model -> apply(
21 $model -> meta_uri('loc:all-increasing'),
22 [ @$self ]
23 );
24 # my $bnode = $model->bnode;
25 # $model -> add_type($bnode, 'loc:Increasing');
26 #
27 # $model -> add_list($bnode, 'loc:expressions',
28 # map { $_ -> to_rdf($model) } @$self
29 # );
30 # return $bnode;
31 }
32  
33 sub compare {
34 0 ▶ my ( $self, $engine, $left_value, $right_value ) = @_;
Subroutine compare: not called CC=1 SCAR=6.9
Pod undocumented
35  
36 0 return $left_value->is_less_or_equal( $engine, $right_value );
37 }
38  
39 29 1;
« blib/lib/Dallycot/AST/Decreasing.pm ↑ Summary blib/lib/Dallycot/AST/FullPlaceholder.pm »