| blib/lib/Math/Tau.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| statement | 15 | 15 | 100.0 |
| branch | n/a | ||
| condition | n/a | ||
| subroutine | 5 | 5 | 100.0 |
| pod | n/a | ||
| total | 20 | 20 | 100.0 |
| line | stmt | bran | cond | sub | pod | time | code |
|---|---|---|---|---|---|---|---|
| 1 | # ABSTRACT: provide the important mathematical constant tau = 6.2831... | ||||||
| 2 | |||||||
| 3 | # PODNAME: Math::Tau | ||||||
| 4 | |||||||
| 5 | package Math::Tau; | ||||||
| 6 | |||||||
| 7 | 1 | 1 | 83341 | use strict; | |||
| 1 | 3 | ||||||
| 1 | 41 | ||||||
| 8 | 1 | 1 | 6 | use warnings; | |||
| 1 | 2 | ||||||
| 1 | 31 | ||||||
| 9 | |||||||
| 10 | 1 | 1 | 6 | use utf8; | |||
| 1 | 2 | ||||||
| 1 | 6 | ||||||
| 11 | |||||||
| 12 | |||||||
| 13 | require Exporter; | ||||||
| 14 | |||||||
| 15 | our @ISA = qw(Exporter); | ||||||
| 16 | |||||||
| 17 | our @EXPORT = qw(tau τ); | ||||||
| 18 | |||||||
| 19 | |||||||
| 20 | 1 | 1 | 76 | use constant tau => 6.28318530717958647692; | |||
| 1 | 3 | ||||||
| 1 | 117 | ||||||
| 21 | 1 | 1 | 5 | use constant τ => tau; | |||
| 1 | 2 | ||||||
| 1 | 70 | ||||||
| 22 | |||||||
| 23 | 1; | ||||||
| 24 | |||||||
| 25 | __END__ |