Repo Added
|
Files
870
|
Badge
README BADGES
|
github
Fix `SparseObservable` C API test invoking UB (#15049) If it were possible to test for the failure mode attempted in the previous test, the function wouldn't need to be `unsafe` in Rust. We cannot test this, because it invoked UB. It probably _mostly_ worked previously because there were additional stack variables in the same frame, which might have been giving enough safe bytes to read to get an actual error out under optimisations made on the assumption that the read was valid. This replaces the fundamentally broken test with two similar tests that are for checks we _can_ do. (cherry picked from commit 41361d62d)
92269 of 104382 relevant lines covered (88.4%)
553091.02 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|