X XFediYour place in the Fediverse
XFEDI

Remote profile

ActivityPub
Profile banner

Dion Dokter

@[email protected]

Embedded tech lead at Tweede golf. I love programming in Rust.

Open remote profile ↗
Posts
↳ In reply to a post

I have UI tests, but that's a kinda blunt weapon.

Ideally I'd be able to spawn some MIR from source and then assert certain properties hold before/after certain MIR passes.
Rustc has some nice infra for this: https://github.com/rust-lang/rust/blob/a7c37f9f0ee5e93396106e9de20f4a86b4154e63/tests/ui/async-await/async-await.rs#L1-L9

GitHubrust/tests/ui/async-await/async-await.rs at a7c37f9f0ee5e93396106e9de20f4a86b4154e63 · rust-lang/rustEmpowering everyone to build reliable and efficient software. - rust-lang/rust
↩ Reply ♡ 0 · ↻ 0 ↗ Original

I really need a crater-like tool for device-driver to make sure new releases don't break anyone. Went through some existing drivers manually and found 2 bugs!

That said, I feel like the codebase has grown bigger than the current test infra can handle, so I need to improve that too

↩ Reply ♡ 0 · ↻ 0 ↗ Original