Commit 5e0d14f
committed
fix(tests): generate storage-only scalar fixtures via run(), not run_sampled()
The catalog-driven fixture dispatch emitted
`eql_v2_<T>::spec().run_sampled().await` for EVERY token. run_sampled()
requires `T: RandomPlaintext`, which is implemented only for the seven
comparison scalar plaintext types — `bool` (storage-only, no `_eq`/`_ord`,
no comparison corpus to randomize) deliberately has no impl. So adding the
`bool` row to the dispatch list (eql_v3_bool, #295) and switching the
dispatch to the randomized corpus (property-tests work) were each green in
isolation but broke when combined:
error[E0277]: the trait bound `bool: RandomPlaintext` is not satisfied
--> tests/sqlx/tests/generate_all_fixtures.rs:23 (scalar_types!(fixture_dispatch))
failing test:sqlx:prep -> fixture:generate:all in build-archive and the new
e2e job.
Route storage-only tokens to run() (fixed curated values, only needs
FixtureValue) and keep run_sampled() for comparison-capable scalars. The
macro already classifies storage-only via is_storage_only_token; this reuses
it. Adds dispatch-routing assertions to the bool unit test.
Verified: cargo test -p eql-tests-macros (20/20) and a --no-run compile of
the generate_all_fixtures target (E0277 gone).1 parent 11d4357 commit 5e0d14f
1 file changed
Lines changed: 25 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
277 | 287 | | |
278 | | - | |
| 288 | + | |
279 | 289 | | |
280 | 290 | | |
281 | 291 | | |
| |||
646 | 656 | | |
647 | 657 | | |
648 | 658 | | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
649 | 673 | | |
650 | 674 | | |
651 | 675 | | |
| |||
0 commit comments