Page MenuHomeDevCentral

Support blackhole database engine for mocks
ClosedPublic

Authored by dereckson on Jun 14 2023, 21:51.
Tags
None
Referenced Files
F3313035: D3198.diff
Fri, Jul 5, 16:41
F3312444: D3198.id8159.diff
Fri, Jul 5, 09:11
F3311992: D3198.diff
Fri, Jul 5, 04:16
Unknown Object (File)
Thu, Jul 4, 02:39
Unknown Object (File)
Sun, Jun 30, 07:59
Unknown Object (File)
Sat, Jun 29, 00:47
Unknown Object (File)
Wed, Jun 26, 05:44
Unknown Object (File)
Mon, Jun 24, 07:28
Subscribers
None

Details

Summary

It can be convenient in tests to replace a full fledged instance
of the database engine by a mock doing nothing. That's the purpose
of this change.

This blackhole engine doesn't really use any of the parameters passed
to the methods, and that's expected behavior for a blackhole. As such,
phpcs is configured to ignore unused parameters.

Test Plan

used in Zed to test GeoLocation class

Diff Detail

Repository
rKERUALD Keruald libraries development repository
Lint
Lint Passed
Unit
Tests Passed
Branch
main
Build Status
Buildable 5034
Build 5315: arc lint + arc unit