| blib/lib/Lisp/Vector.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| statement | 7 | 10 | 70.0 |
| branch | n/a | ||
| condition | n/a | ||
| subroutine | 3 | 5 | 60.0 |
| pod | 0 | 3 | 0.0 |
| total | 10 | 18 | 55.5 |
| line | stmt | bran | cond | sub | pod | time | code |
|---|---|---|---|---|---|---|---|
| 1 | package Lisp::Vector; | ||||||
| 2 | |||||||
| 3 | 6 | 6 | 44 | use strict; | |||
| 6 | 10 | ||||||
| 6 | 218 | ||||||
| 4 | 6 | 6 | 28 | use vars qw(@EXPORT_OK); | |||
| 6 | 11 | ||||||
| 6 | 974 | ||||||
| 5 | |||||||
| 6 | require Exporter; | ||||||
| 7 | *import = \&Exporter::import; | ||||||
| 8 | @EXPORT_OK = qw(vector vectorp); | ||||||
| 9 | |||||||
| 10 | sub vector | ||||||
| 11 | { | ||||||
| 12 | 0 | 0 | 0 | 0 | Lisp::Vector->new(@_); | ||
| 13 | } | ||||||
| 14 | |||||||
| 15 | sub vectorp | ||||||
| 16 | { | ||||||
| 17 | 29 | 29 | 0 | 199 | UNIVERSAL::isa($_[0], "Lisp::Vector"); | ||
| 18 | } | ||||||
| 19 | |||||||
| 20 | sub new | ||||||
| 21 | { | ||||||
| 22 | 0 | 0 | 0 | my $class = shift; | |||
| 23 | 0 | bless [@_], $class; | |||||
| 24 | } | ||||||
| 25 | |||||||
| 26 | 1; |