pwr-Solaar / Solaar

Linux device manager for Logitech devices
https://pwr-solaar.github.io/Solaar
GNU General Public License v2.0
5.56k stars 411 forks source link

Decouple logitech_receiver package from low level hidapi package #2612

Closed MattHag closed 1 month ago

MattHag commented 1 month ago

Modules should be independent and unit testable without other modules. Therefore, modules use an interface for external dependencies which are "joined" together at a higher level instead of hard coded module imports (cross-references). Thus, each module can be tested on its own using a mock or fake of the "soft dependency".

MattHag commented 1 month ago

Tackled within #2626 and the commits 99fc9c6fcb9cc09af0e34f378a6077b331321f98 615499dce2cbecf60fccf1022431c883c49a7713