1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-06-16 23:47:38 +02:00

Add missing ToLog() coverage to String, List, and PgControl.

Missing coverage is exposed in the next commit which disables test tracing by default.
This commit is contained in:
David Steele
2019-02-22 11:31:37 +02:00
parent a7c8906581
commit ae86e6d5b2
5 changed files with 39 additions and 3 deletions

View File

@ -89,5 +89,21 @@ testRun(void)
TEST_RESULT_INT(info.version, PG_VERSION_83, " check version");
}
// *****************************************************************************************************************************
if (testBegin("pgControlToLog()"))
{
PgControl pgControl =
{
.version = PG_VERSION_11,
.systemId = 0xEFEFEFEFEF,
.walSegmentSize= 16 * 1024 * 1024,
.pageChecksum = true
};
TEST_RESULT_STR(
strPtr(pgControlToLog(&pgControl)),
"{version: 110000, systemId: 1030522662895, walSegmentSize: 16777216, pageChecksum: true}", "check log");
}
FUNCTION_HARNESS_RESULT_VOID();
}