Commit eb19539
committed
Add unit tests for USB SD card reader detection
Add comprehensive unit tests for the new USB SD card reader detection
functionality in MediacardComboStorage:
- test_mediacard_combo_storage_usb_sd_card_reader_insertion: Tests
detection of insertion via capacity change messages
- test_mediacard_combo_storage_usb_sd_card_reader_removal: Tests
detection of removal via capacity change to 0
- test_mediacard_combo_storage_usb_sd_card_reader_partition: Tests
extraction of partition names from sda: sda1 patterns
- test_mediacard_combo_storage_usb_sd_card_reader_action_update: Tests
that action state can be updated from removal to insertion
These tests cover the new code paths added to support USB SD card
readers that appear as SCSI/USB mass storage devices.1 parent e840c16 commit eb19539
1 file changed
+41
-0
lines changedLines changed: 41 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
420 | 420 | | |
421 | 421 | | |
422 | 422 | | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
423 | 464 | | |
424 | 465 | | |
425 | 466 | | |
| |||
0 commit comments