Repository navigation
TDbCronManager second coverage audit: driver gap tests, unused getIsOracle removed (#1497) - #1681
Merged
ctrlaltca merged 1 commit intoNov 28, 2026
Conversation
belisoful
force-pushed
the
coverage-dbcronmanager-reaudit
branch
from
November 27, 2026 14:25
0d3b51a to
b32518b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #1497.
This is a second coverage audit of Util/Cron after #1646, #1663, and #1667 changed
TDbCronManagerfollowing the Util/Cron coverage in #1621. Path coverage ran with only the Util/Cron tests on current master.Findings
TDbCronManagerhad six reachable gaps, all from the driver work. The new tests close each one:executeInsert(): a FirebirdRETURNINGthat returns no row gives a null id.decodeTaskOptions(): a null value, and a stored value that is not base64 (read as is).getLastInsertTaskUID(): an empty Oracle identity sequence name gives a null id.getEarliestPendingTime(): a null, false, or numeric minimum.createDbTable(): the fullCREATE TABLE IF NOT EXISTSand its indexes on MySQL, SQLite, PostgreSQL, and a driver with no auto-increment attribute (odbc). The existing test stops at the first command.getCronLogCount()andclearCronLog()when access is denied, now inTDbCronManagerTestas well as through the shell action.getIsOracle()(added in TDbCronManager on Oracle: create, index, migrate, and use its table (#1497) #1646) has no caller. It is removed. It was never released.The remaining missed paths in
TDbCronManagerare Xdebug artifacts: a path that skips the right operand of a||or&&that must run, or aforeachover a constant, non-empty array that iterates zero times.Checks
php -l, php-cs-fixer, phpstan, and the full unit suite pass. The changed tests pass on PHP 8.2 to 8.6.