File Coverage

blib/arch/Graphics/Layout/Kiwisolver/Term.pm
Criterion Covered Total %
statement 14 14 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 0 1 0.0
total 18 19 94.7


line stmt bran cond sub pod time code
1 8     8   65 use strict;
  8         18  
  8         237  
2 8     8   44 use warnings;
  8         17  
  8         546  
3             package Graphics::Layout::Kiwisolver::Term;
4             # ABSTRACT: Kiwisolver term
5             $Graphics::Layout::Kiwisolver::Term::VERSION = '0.002';
6 8     8   53 use overload "fallback" => 0, '""' => \&stringify;
  8         20  
  8         57  
7              
8             sub stringify {
9 3     3 0 19 my ($self) = @_;
10 3         7 "(@{[ $self->coefficient ]} * @{[ $self->variable ]} : @{[ $self->value ]})"
  3         27  
  3         25  
  3         41  
11             }
12              
13             1;
14              
15             __END__
16              
17             =pod
18              
19             =encoding UTF-8
20              
21             =head1 NAME
22              
23             Graphics::Layout::Kiwisolver::Term - Kiwisolver term
24              
25             =head1 VERSION
26              
27             version 0.002
28              
29             =head1 AUTHOR
30              
31             Zakariyya Mughal <zmughal@cpan.org>
32              
33             =head1 COPYRIGHT AND LICENSE
34              
35             This software is copyright (c) 2019 by Zakariyya Mughal.
36              
37             This is free software; you can redistribute it and/or modify it under
38             the same terms as the Perl 5 programming language system itself.
39              
40             =cut