blib/lib/Netscape/Bookmarks/AcceptVisitor.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 12 | 13 | 92.3 |
branch | 1 | 2 | 50.0 |
condition | 1 | 3 | 33.3 |
subroutine | 4 | 4 | 100.0 |
pod | 0 | 1 | 0.0 |
total | 18 | 23 | 78.2 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Netscape::Bookmarks::AcceptVisitor; | ||||||
2 | |||||||
3 | 9 | 9 | 62 | use strict; | |||
9 | 15 | ||||||
9 | 217 | ||||||
4 | 9 | 9 | 1806 | use subs qw(); | |||
9 | 119 | ||||||
9 | 159 | ||||||
5 | 9 | 9 | 40 | use vars qw($VERSION); | |||
9 | 15 | ||||||
9 | 1060 | ||||||
6 | |||||||
7 | $VERSION = "2.304"; | ||||||
8 | |||||||
9 | sub visitor { | ||||||
10 | 17 | 17 | 0 | 41 | my( $self, $visitor ) = @_; | ||
11 | |||||||
12 | 17 | 50 | 33 | 130 | unless( ref $visitor and $visitor->can('visit') ) { | ||
13 | 0 | 0 | return; | ||||
14 | } | ||||||
15 | |||||||
16 | 17 | 49 | return $visitor->visit( $self ); | ||||
17 | } | ||||||
18 | |||||||
19 | 1; | ||||||
20 | |||||||
21 | __END__ |