blib/lib/Dallycot/AST/StrictlyIncreasing.pm

filter: Statementstmt 72.7% 16 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 71.4% 5 / 7 Podpod 0.0% 0 / 3 totaltotal 65.6% 21 / 32 CC 1 SCAR 2.5
CC
1
Cov
73%
to_string
2.0
to_rdf
2.0
BEGIN
1.0
CRAP 1.3
« blib/lib/Dallycot/AST/StrictlyDecreasing.pm ↑ Summary blib/lib/Dallycot/AST/Placeholder.pm »
1 package Dallycot::AST::StrictlyIncreasing;
2 29 our $AUTHORITY = 'cpan:JSMITH';
3  
4 # ABSTRACT: Test that all values are in strictly 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  
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-strictly-increasing'),
23 [ @$self ]
24 );
25 # my $bnode = $model->bnode;
26 # $model -> add_type($bnode, 'loc:StrictlyIncreasing');
27 #
28 # $model -> add_list($bnode, 'loc:expressions',
29 # map { $_ -> to_rdf($model) } @$self
30 # );
31 # return $bnode;
32 }
33  
34 sub compare {
35 11 ▶ my ( $self, $engine, $left_value, $right_value ) = @_;
Subroutine compare: called CC=1 SCAR=0.0
Pod undocumented
36  
37 11 return $left_value->is_less( $engine, $right_value );
38 }
39  
40 29 1;
« blib/lib/Dallycot/AST/StrictlyDecreasing.pm ↑ Summary blib/lib/Dallycot/AST/Placeholder.pm »