File Coverage

blib/arch/Intertangle/API/Kiwisolver/Expression.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod 0 1 0.0
total 15 16 93.7


line stmt bran cond sub pod time code
1 8     8   51 use Renard::Incunabula::Common::Setup;
  8         16  
  8         57  
2             package Intertangle::API::Kiwisolver::Expression;
3             # ABSTRACT: Kiwisolver expression
4             $Intertangle::API::Kiwisolver::Expression::VERSION = '0.001';
5 8     8   48667 use overload "fallback" => 0, '""' => \&stringify;
  8         16  
  8         55  
6              
7             sub stringify {
8 1     1 0 1787 my ($self) = @_;
9 1         18 "(@{[ $self->constant ]} + "
10 1         2 . join(" + ", map { "$_" } @{ $self->terms })
  3         9  
  1         19  
11 1         15 . " : @{[ $self->value ]})"
12             }
13              
14             1;
15              
16             __END__
17              
18             =pod
19              
20             =encoding UTF-8
21              
22             =head1 NAME
23              
24             Intertangle::API::Kiwisolver::Expression - Kiwisolver expression
25              
26             =head1 VERSION
27              
28             version 0.001
29              
30             =head1 AUTHOR
31              
32             Zakariyya Mughal <zmughal@cpan.org>
33              
34             =head1 COPYRIGHT AND LICENSE
35              
36             This software is copyright (c) 2019 by Zakariyya Mughal.
37              
38             This is free software; you can redistribute it and/or modify it under
39             the same terms as the Perl 5 programming language system itself.
40              
41             =cut