1
0
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:
David Steele
2016-12-23 11:43:26 -05:00
parent 5d3473b52d
commit 83beab7ec3
5 changed files with 161 additions and 13 deletions
+7 -1
View File
@@ -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;