humanmade / humanmade/ext-php-rs-starter

Clean up files on teardown

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

We write files out to the temp directory but never clean them up.

We can implement a teardown by having `setup()` return an object which implements `Drop`, and having tests keep it in scope, eg
```rs
#[test]
fn test_some_thing() {
let ctx = setup();
// ...
}

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.