File Coverage

lib/Spreadsheet/Engine/Function/PI.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 2 2 100.0
total 19 19 100.0


line stmt bran cond sub pod time code
1             package Spreadsheet::Engine::Function::PI;
2              
3 28     28   155 use strict;
  28         58  
  28         902  
4 28     28   141 use warnings;
  28         63  
  28         730  
5              
6 28     28   253 use base 'Spreadsheet::Engine::Fn::base';
  28         56  
  28         4136  
7              
8 1005     1005 1 2568 sub argument_count { 0 }
9              
10             sub result {
11 1001     1001 1 1551 my $self = shift;
12 1001         27795 return Spreadsheet::Engine::Value->new(
13             type => 'n',
14             value => atan2(1, 1) * 4
15             );
16             }
17              
18             1;
19              
20             __END__