testcases/FS/qstart.pm

filter: Statementstmt 66.6% 16 / 24 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 0.0% 0 / 1 totaltotal 63.6% 21 / 33 SCAR 8.0
CC
2
Cov
62%
set_up
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.2
« testcases/FS/linkage.pm ↑ Summary DO/Data/Customer.pm »
1 package XAO::testcases::FS::qstart;
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use XAO::Utils;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use XAO::Objects;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use Error qw(:try);
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 ▶use base qw(XAO::testcases::FS::basic);
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 sub set_up {
10 0 ▶ my $self=shift;
Subroutine set_up: not called CC=2 SCAR=17.9
Pod undocumented
11  
12 # We call the main setup, let it create the basic structure, then
13 # disconnect, reconned in default mode without destroying or
14 # checking the database.
15 #
16 0 $self->SUPER::set_up();
17  
18 0 ▶ return if $self->{'skip_db_tests'};
Branch: 1 branch
BranchTrueFalseTotal
if $self->{"skip_db_tests"} 0 0 0
19  
20 0 $self->{'odb'}->disconnect;
21 0 undef $self->{'odb'};
22  
23 0 $self->{'odb'}=XAO::Objects->new($self->{'odb_args'},{
24 objname => 'FS::Glue',
25 });
26 0 $self->assert($self->{'odb'}, "Can't re-connect to the FS database");
27  
28 0 dprint "Database reconnected in 'quick' (normal run) mode";
29 }
30  
31 ### sub test_1 ($) {
32 ### my $self=shift;
33 ### dprint "self=$self";
34 ### my $odb=$self->get_odb;
35 ### dprint "odb=$odb";
36 ### }
37  
38 1 1;
« testcases/FS/linkage.pm ↑ Summary DO/Data/Customer.pm »