| 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
| |||||||||||
| 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; | |||||||||