blib/lib/Tie/Toggle.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 | package Tie::Toggle; | ||||||
2 | 2 | 2 | 68513 | use strict; | |||
2 | 14 | ||||||
2 | 64 | ||||||
3 | |||||||
4 | 2 | 2 | 891 | use parent qw( Tie::Cycle ); | |||
2 | 584 | ||||||
2 | 11 | ||||||
5 | 2 | 2 | 2506 | use vars qw( $VERSION ); | |||
2 | 3 | ||||||
2 | 71 | ||||||
6 | |||||||
7 | 2 | 2 | 11 | use Tie::Cycle; | |||
2 | 4 | ||||||
2 | 136 | ||||||
8 | |||||||
9 | $VERSION = '1.082'; | ||||||
10 | |||||||
11 | sub TIESCALAR { | ||||||
12 | 1 | 1 | 79 | my $class = shift; | |||
13 | |||||||
14 | 1 | 4 | my $self = [ 0, 2, [ 0 == 1, 1 == 1] ]; | ||||
15 | |||||||
16 | 1 | 4 | bless $self, $class; | ||||
17 | } | ||||||
18 | |||||||
19 | __END__ |