Closed emaxx-google closed 8 months ago
Continuous Integration: All tests passed. C/C++ test coverage: 73.17% lines.
LGTM - optional nit: I would refer to the tests by their name instead of 'previous test', in case some other test is inserted in between
sure, done. thanks!
Continuous Integration: All tests passed. C/C++ test coverage: 73.15% lines.
Duplicate the existing tests for SCardGetStatusChange() in the card insertion/removal scenarios, with introducing a variant of these tests that delays the card insertion/removal by some (hardcoded) interval.
This adds test coverage for some internal implementation codepaths, because the previously existing tests were only triggering events that are immediately discovered by SCardGetStatusChange before it enters the polling loop, and before it starts relying on asynchronous USB notifications from the reader (via interrupt USB transfers).