You've already forked pgbackrest
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:
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user