Repository navigation
Commit 60d36b7
committed
cuda.core.texture: register new StrEnums in enum-coverage test (NVIDIA#2292)
test_enum_coverage.py::test_all_str_enums_in_cases requires every
StrEnum in cuda.core to be declared either in _CASES (bound to a
cuda_binding enum) or in _UNBOUND_STR_ENUMS. The four texture enums
moved into cuda.core.typing (item 4 of NVIDIA#2292) were not registered,
failing that guard.
- AddressModeType / FilterModeType are 1:1 wrappers of CUaddress_mode /
CUfilter_mode, so add mapping=None _CASES entries (count-check only;
the texture mapping dicts store cydriver-derived ints, not
driver.<Enum> members, so the isinstance-based mapping check does not
apply).
- ArrayFormatType exposes only the 8 NumPy-representable formats out of
CUarray_format's ~67 members, so it is a curated subset rather than a
1:1 wrapper -> _UNBOUND_STR_ENUMS.
- ReadModeType maps to the CU_TRSF_READ_AS_INTEGER flag bit, not a
CUenum -> _UNBOUND_STR_ENUMS.
This is the third local test failure; the other two (stale texture
negative-path tests) were fixed in the two preceding commits.1 parent 57bcf4c commit 60d36b7
1 file changed
Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
101 | 120 | | |
102 | 121 | | |
103 | 122 | | |
| |||
278 | 297 | | |
279 | 298 | | |
280 | 299 | | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
281 | 310 | | |
282 | 311 | | |
283 | 312 | | |
| |||
0 commit comments