Commit 2f11666
refactor(test): replace #[cfg] with #[cfg_attr(..., ignore)] in device_id tests (#380)
The device_id tests compile on all platforms since get_device_id and
DeviceId exist everywhere. Use cfg_attr ignore instead of cfg gates so
these tests are still compiled (catching type errors early) but skipped
at runtime on unsupported platforms. Rename the duplicate-named
different_filesystem_returns_different_ids functions to unique names
to allow both to coexist without cfg gates.
https://claude.ai/code/session_01UJVc5eCuHdjJwKFpcV82vP
Co-authored-by: Claude <noreply@anthropic.com>1 parent 5a88f61 commit 2f11666
1 file changed
Lines changed: 11 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
48 | 51 | | |
49 | 52 | | |
50 | 53 | | |
| |||
56 | 59 | | |
57 | 60 | | |
58 | 61 | | |
59 | | - | |
60 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
61 | 67 | | |
62 | 68 | | |
63 | 69 | | |
| |||
0 commit comments