You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2026-05-22 10:15:16 +02:00
Refactor File module to improve test coverage.
Added unit tests for low-level functions in the BackupCommon module.
This commit is contained in:
@@ -180,7 +180,13 @@ sub begin
|
||||
else
|
||||
{
|
||||
my $hModule = testDefModuleGet($self->{strModule});
|
||||
$self->{bExpect} = $hModule->{&TESTDEF_EXPECT} ? true : false;
|
||||
my $hModuleTest = testDefModuleTestGet($hModule, $self->{strModuleTest});
|
||||
$self->{bExpect} =
|
||||
defined($hModuleTest->{&TESTDEF_EXPECT}) ?
|
||||
($hModuleTest->{&TESTDEF_EXPECT} ? true : false) :
|
||||
(defined($hModule->{&TESTDEF_EXPECT}) ?
|
||||
($hModule->{&TESTDEF_EXPECT} ? true : false) :
|
||||
false);
|
||||
}
|
||||
|
||||
# Increment the run counter;
|
||||
|
||||
Reference in New Issue
Block a user