Kite.pm

filter: Statementstmt 76.9% 20 / 26 Branchbran 50.0% 1 / 2 Conditioncond 22.2% 2 / 9 MC/DCmcdc 16.6% 1 / 6 Subroutinesub 71.4% 5 / 7 Podpod 100% 3 / 3 totaltotal 60.3% 32 / 53 CC 4 SCAR 11.6
CC
4
Cov
62%
xml2ps
6.0
xml_parser
6.0
profile
2.0
CRAP 3.2
« Kite/Base.pm ↑ Summary Kite/PScript/Defs.pm »
1 #============================================================= -*-perl-*-
2 #
3 # Kite
4 #
5 # DESCRIPTION
6 # Front-end for the Kite::* modules. Currently just a placeholder
7 # for a version number for the bundle.
8 #
9 # AUTHOR
10 # Andy Wardley <abw@kfs.org>
11 #
12 # COPYRIGHT
13 # Copyright (C) 2000 Andy Wardley. All Rights Reserved.
14 #
15 # This module is free software; you can redistribute it and/or
16 # modify it under the same terms as Perl itself.
17 #
18 # VERSION
19 # $Id: Kite.pm,v 1.3 2000/10/17 11:58:16 abw Exp $
20 #
21 #========================================================================
22
23 package Kite;
24  
25 1 require 5.004;
26  
27 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
28 1 ▶use Kite::Base;
Subroutine BEGIN: called CC=1 SCAR=0.0
29 1 ▶use base qw( Kite::Base );
Subroutine BEGIN: called CC=1 SCAR=0.0
30 1 ▶use vars qw( $VERSION $ERROR $DEBUG );
Subroutine BEGIN: called CC=1 SCAR=0.0
31  
32 1 $VERSION = 0.4;
33 1 ▶$DEBUG = 0 unless defined $DEBUG;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $Kite::DEBUG 1 0 1
34 1 $ERROR = '';
35  
36  
37 2 ▶sub profile {
Subroutine profile: called CC=2 SCAR=7.0
Pod documented
38 2 my $class = shift;
39 2 require Kite::Profile;
40 2 ▶ return Kite::Profile->new(@_)
Condition66%2/3
'Kite::Profile'->new(@_) || $class->error($Kite::Profile::ERROR)
l!l&&r!l&&!r
101
MC/DC50%1/2
'Kite::Profile'->new(@_) || $class->error($Kite::Profile::ERROR)
'Kite::Profile'->new(@_) $class->error($Kite::Profile::ERROR)
Truth table66%2/3
A || B
A= 'Kite::Profile'->new(@_)B= $class->error($Kite::Profile::ERROR)
ABresult
1X1
011
000
41 || $class->error($Kite::Profile::ERROR);
42 }
43  
44  
45 0 ▶sub xml2ps {
Subroutine xml2ps: not called CC=2 SCAR=17.9
Pod documented
46 0 my $class = shift;
47 0 require Kite::XML2PS;
48 0 ▶ return Kite::XML2PS->new(@_)
Condition0%0/3
'Kite::XML2PS'->new(@_) || $class->error($Kite::XML2PS::ERROR)
l!l&&r!l&&!r
000
MC/DC0%0/2
'Kite::XML2PS'->new(@_) || $class->error($Kite::XML2PS::ERROR)
'Kite::XML2PS'->new(@_) $class->error($Kite::XML2PS::ERROR)
Truth table0%0/3
A || B
A= 'Kite::XML2PS'->new(@_)B= $class->error($Kite::XML2PS::ERROR)
ABresult
1X1
011
000
49 || $class->error($Kite::XML2PS::ERROR);
50 }
51  
52 0 ▶sub xml_parser {
Subroutine xml_parser: not called CC=2 SCAR=17.9
Pod documented
53 0 my $class = shift;
54 0 require Kite::XML::Parser;
55 0 ▶ return Kite::XML::Parser->new(@_)
Condition0%0/3
'Kite::XML::Parser'->new(@_) || $class->error($Kite::XML::Parser::ERROR)
l!l&&r!l&&!r
000
MC/DC0%0/2
'Kite::XML::Parser'->new(@_) || $class->error($Kite::XML::Parser::ERROR)
'Kite::XML::Parser'->new(@_) $class->error($Kite::XML::Parser::ERROR)
Truth table0%0/3
A || B
A= 'Kite::XML::Parser'->new(@_)B= $class->error($Kite::XML::Parser::ERROR)
ABresult
1X1
011
000
56 || $class->error($Kite::XML::Parser::ERROR);
57 }
58  
59 1 1;
60  
61 __END__
« Kite/Base.pm ↑ Summary Kite/PScript/Defs.pm »