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 | 77144 | use strict; | |||
2 | 18 | ||||||
2 | 68 | ||||||
3 | 2 | 2 | 29 | use v5.10; | |||
2 | 6 | ||||||
4 | |||||||
5 | 2 | 2 | 1019 | use parent qw( Tie::Cycle ); | |||
2 | 728 | ||||||
2 | 11 | ||||||
6 | 2 | 2 | 2776 | use vars qw( $VERSION ); | |||
2 | 4 | ||||||
2 | 85 | ||||||
7 | |||||||
8 | 2 | 2 | 11 | use Tie::Cycle; | |||
2 | 5 | ||||||
2 | 157 | ||||||
9 | |||||||
10 | $VERSION = '1.084'; | ||||||
11 | |||||||
12 | sub TIESCALAR { | ||||||
13 | 1 | 1 | 97 | my $class = shift; | |||
14 | |||||||
15 | 1 | 4 | my $self = [ 0, 2, [ 0 == 1, 1 == 1] ]; | ||||
16 | |||||||
17 | 1 | 6 | bless $self, $class; | ||||
18 | } | ||||||
19 | |||||||
20 | __END__ |