News for hackers. Stuff that matters.
Re:Rust 2019: Tame Complexity through Community Involvement ... by kouteiheika on Tuesday January 01, 2019 @04:08PM (#18802373)
If it's something that doesn't take too much wall time I just simply initialize those from scratch for every test. If I have multiple tests which need some complex setup I just put that down in a separate function and call that in every test. If it's something reaaally expensive to initialize I just use lazy_static:

https://crates.io/crates/lazy_static

There are no comments on this comment yet.