File Coverage

lib/Draft/Protozoa/Eml/Line/Draft1.pm
Criterion Covered Total %
statement 19 19 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod n/a
total 25 25 100.0


line stmt bran cond sub pod time code
1             package Draft::Protozoa::Eml::Line::Draft1;
2              
3             =head1 NAME
4              
5             Draft::Protozoa::Eml::Line::Draft1 - CAD line drawing-object
6              
7             =head1 SYNOPSIS
8              
9             A line consists of two points.
10              
11             =cut
12              
13 1     1   5 use strict;
  1         2  
  1         34  
14 1     1   5 use warnings;
  1         1  
  1         34  
15 1     1   6 use Draft::Protozoa::Eml;
  1         1  
  1         26  
16 1     1   406 use Draft::Entity::Line;
  1         2  
  1         24  
17              
18 1     1   5 use vars qw /@ISA/;
  1         1  
  1         87  
19             @ISA = qw /Draft::Protozoa::Eml Draft::Entity::Line/;
20              
21             =pod
22              
23             =head1 DESCRIPTION
24              
25             Though a line consists of just two points, it should really be
26             extended to an arbitrary number of points - A polyline.
27              
28             =cut
29              
30             sub _parse
31             {
32 1     1   2 my $self = shift;
33 1         1 my $data = shift;
34              
35 1         8 $self->{0} = $data->{0};
36 1         7 $self->{1} = $data->{1};
37             }
38              
39             1;