Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix multiple device filters excluding all devices #3

Merged
merged 2 commits into from
Jan 29, 2024

Conversation

Cellivar
Copy link
Owner

The filter logic wasn't properly handling mixed results from multiple filters, such as two filters with different vendor IDs. This fixes that issue and adds some tests to ensure it works correctly.

Copy link

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 14.79% 100 / 676
🔵 Statements 14.79% 100 / 676
🔵 Functions 35.29% 6 / 17
🔵 Branches 65.78% 25 / 38
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Changed Files
src/Usb/UsbDeviceManager.ts 0% 0% 0% 0% 1-168
src/Usb/UsbUtilities.ts 93.61% 91.3% 100% 93.61% 21-22, 45
Generated in workflow #6

@Cellivar Cellivar merged commit 849f4f2 into main Jan 29, 2024
1 check passed
@Cellivar Cellivar deleted the feature/tet-device-filters branch January 29, 2024 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant