File Coverage

lib/Spreadsheet/Engine/Function/TAN.pm
Criterion Covered Total %
statement 13 13 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod 2 2 100.0
total 21 21 100.0


line stmt bran cond sub pod time code
1             package Spreadsheet::Engine::Function::TAN;
2              
3 28     28   154 use strict;
  28         59  
  28         1073  
4 28     28   160 use warnings;
  28         63  
  28         916  
5              
6 28     28   148 use base 'Spreadsheet::Engine::Fn::math';
  28         57  
  28         5174  
7              
8             sub signature {
9 1     1   13 sub { return cos shift != 0 }
10 2     2 1 14 }
11              
12             sub calculate {
13 1     1 1 28 my ($self, $value) = @_;
14 1         38 return sin($value) / cos($value);
15             }
16              
17             1;
18              
19             __END__