Net/SDEE/Query.pm

filter: Statementstmt 57.1% 12 / 21 Branchbran n/a Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 48.3% 15 / 31 CC 3 SCAR 18.7
CC
3
Cov
50%
new
12.0
BEGIN
1.0
BEGIN
1.0
CRAP 6.5
« Net/SDEE/Session.pm ↑ Summary
1 # Net::SDEE::Query.pm
2 #
3 # $Id: Query.pm,v 1.1 2004/12/23 12:02:30 jminieri Exp $
4 #
5 # Copyright (c) 2004 Joe Minieri <jminieri@mindspring.com> and OpenService (www.open.com).
6 # All rights reserved.
7 # This program is free software; you can redistribute it and/or modify it under the same
8 # terms as Perl itself.
9 #
10  
11 package Net::SDEE::Query;
12  
13 1 ▶use 5.006001;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
15 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
16  
17 1 require Net::SDEE::Common;
18 1 our @ISA = qw/ Net::SDEE::Common /;
19 1 our $VERSION = '0.01';
20  
21 ##########################################################################################
22 #
23 # Non-generic get/set methods
24 #
25  
26 ##########################################################################################
27 #
28 0 ▶sub new {
Subroutine new: not called CC=3 SCAR=24.8
Pod undocumented
29 0 my $caller = shift;
30 0 my %attr = @_;
31  
32 0 ▶ my $class = (ref($caller) or $caller);
Condition0%0/3
ref $caller || $caller
l!l&&r!l&&!r
000
MC/DC0%0/2
ref $caller || $caller
ref $caller $caller
Truth table0%0/3
A || B
A= ref $callerB= $caller
ABresult
1X1
011
000
33 0 my $self = bless {
34 # retrieval parameters
35 'startTime', undef,
36 'stopTime', undef, # only for queries
37 'events', 'evIdsAlert',
38 'idsAlertSeverities', undef,
39 'errorSeverities', undef,
40 'maxNbrOfEvents', 20, # set this just so we don't crush the box
41 # results
42 'error', undef,
43 'errorString', undef
44 }, $class;
45  
46  
47 0 foreach my $attribute ( keys %attr ) {
48 0 $self->$attribute( $attr{ $attribute });
49 }
50  
51 #if(defined($self->{debug})) { $DEBUG_FLAG = 1; }
52  
53 0 $self->error(undef);
54 0 $self->errorString(undef);
55  
56 0 return $self;
57  
58 }
59  
60 #
61 ##########################################################################################
62  
63 1 1;
64 __END__
« Net/SDEE/Session.pm ↑ Summary