| 1 | # daft-derive fixtures |
| 2 | |
| 3 | ## Valid fixtures |
| 4 | |
| 5 | These fixtures ensure that: |
| 6 | |
| 7 | * the macro's output is stable, via `snapshot_test.rs` |
| 8 | * the macro's output compiles, via `ui_test.rs` |
| 9 | |
| 10 | Each file in `valid` is automatically picked up by the snapshot and UI tests. |
| 11 | |
| 12 | `snapshot_test.rs` tests all macro invocations annotated with `#[derive(Diffable)]`. |
| 13 | |
| 14 | ## Invalid fixtures |
| 15 | |
| 16 | These fixtures ensure that: |
| 17 | |
| 18 | * the macro's success output, if any, is stable, via `snapshot_test.rs`. |
| 19 | * the macro's output fails with a good error message, via `ui_test.rs`. |
| 20 | |
| 21 | Each file in `invalid` is automatically picked up by the snapshot and UI tests. |
| 22 | |
| 23 | Like with valid fixtures, `snapshot_test.rs` tests all macro invocations annotated with `#[derive(Diffable)]`. |