blib/lib/Tie/Toggle.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 17 | 17 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 6 | 6 | 100.0 |
pod | n/a | ||
total | 23 | 23 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Tie::Toggle; | ||||||
2 | 2 | 2 | 71212 | use strict; | |||
2 | 12 | ||||||
2 | 58 | ||||||
3 | 2 | 2 | 26 | use v5.10; | |||
2 | 7 | ||||||
4 | |||||||
5 | 2 | 2 | 975 | use parent qw( Tie::Cycle ); | |||
2 | 654 | ||||||
2 | 12 | ||||||
6 | 2 | 2 | 2539 | use vars qw( $VERSION ); | |||
2 | 4 | ||||||
2 | 72 | ||||||
7 | |||||||
8 | 2 | 2 | 10 | use Tie::Cycle; | |||
2 | 4 | ||||||
2 | 139 | ||||||
9 | |||||||
10 | $VERSION = '1.083'; | ||||||
11 | |||||||
12 | sub TIESCALAR { | ||||||
13 | 1 | 1 | 90 | my $class = shift; | |||
14 | |||||||
15 | 1 | 4 | my $self = [ 0, 2, [ 0 == 1, 1 == 1] ]; | ||||
16 | |||||||
17 | 1 | 4 | bless $self, $class; | ||||
18 | } | ||||||
19 | |||||||
20 | __END__ |