What is a good way of cleaning up after a unittest in Rust? Since the test-function aborts on a failure, one cannot simply clean up at the end of the function under test.
From testing frameworks in other languages, there's usually a way to setup a callback that handles cleanup at the end of each test-function.
Aucun commentaire:
Enregistrer un commentaire