Page MenuHomeDevCentral

Support blackhole database engine for mocks
ClosedPublic

Authored by dereckson on Jun 14 2023, 21:51.
Tags
None
Referenced Files
F3929372: D3198.id8162.diff
Sun, Dec 22, 08:57
Unknown Object (File)
Sat, Dec 21, 20:10
Unknown Object (File)
Sat, Dec 21, 19:50
Unknown Object (File)
Tue, Dec 17, 04:30
Unknown Object (File)
Tue, Dec 17, 03:43
Unknown Object (File)
Mon, Dec 9, 02:30
Unknown Object (File)
Sun, Dec 8, 20:06
Unknown Object (File)
Tue, Dec 3, 11:36
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 5036
Build 5317: arc lint + arc unit