mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
Add SnapshotResults struct to egui_kittest (#5672)
I got annoyed by all the slightly different variations of "collect snapshot results and unwrap them at the end of test" I've written, so I added a struct to make this nice and simple. One controversial thing: It panics when dropped. I wanted to ensure people cannot forget to unwrap the results at the end, and this was the best thing I could come up with. I don't think this is possible via clippy lint or something like that. * [x] I have followed the instructions in the PR template
This commit is contained in:
4
.github/workflows/rust.yml
vendored
4
.github/workflows/rust.yml
vendored
@@ -9,7 +9,7 @@ env:
|
||||
|
||||
jobs:
|
||||
fmt-crank-check-test:
|
||||
name: Format + check + test
|
||||
name: Format + check
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@@ -223,7 +223,7 @@ jobs:
|
||||
|
||||
tests:
|
||||
name: Run tests
|
||||
# We run the tests on macOS because it will run with a actual GPU
|
||||
# We run the tests on macOS because it will run with an actual GPU
|
||||
runs-on: macos-latest
|
||||
|
||||
steps:
|
||||
|
||||
Reference in New Issue
Block a user