1.0 KiB, 1 run
created by r1870400018:17939, which is this file's identity for as long as the history lasts, whatever it is later renamed to
download · who wrote it · its history
| 1 | //! Proves the facade's `all` feature exposes every member crate. |
| 2 | //! |
| 3 | //! The `all` feature once listed `dep:` entries, which link the member crates |
| 4 | //! but suppress the implicit features the re-exports in `lib.rs` are gated on, |
| 5 | //! so `--features all` compiled everything and exposed nothing. These `use` |
| 6 | //! statements are compile-time proof against that regression: if a re-export |
| 7 | //! goes dark, this test target fails to build. |
| 8 | #![cfg(feature = "all")] |
| 9 | |
| 10 | #[allow(unused_imports)] |
| 11 | use oxedyne_fe2o3::{ |
| 12 | bot, |
| 13 | core, |
| 14 | crypto, |
| 15 | data, |
| 16 | datime, |
| 17 | file, |
| 18 | geom, |
| 19 | graphics, |
| 20 | hash, |
| 21 | iop_crypto, |
| 22 | iop_db, |
| 23 | iop_hash, |
| 24 | jdat, |
| 25 | mail, |
| 26 | namex, |
| 27 | net, |
| 28 | num, |
| 29 | o3db, |
| 30 | ore, |
| 31 | shield, |
| 32 | stds, |
| 33 | steel, |
| 34 | syntax, |
| 35 | sys, |
| 36 | test, |
| 37 | text, |
| 38 | tui, |
| 39 | units, |
| 40 | }; |
| 41 | |
| 42 | /// The imports above are the test; this arms the target. |
| 43 | #[test] |
| 44 | fn the_facade_exposes_what_all_promises() { |
| 45 | // Touch one item through the facade so the re-export chain is exercised |
| 46 | // beyond name resolution. |
| 47 | let id = ore::id::OpId::new(ore::id::ReplicaId::new(1), 1); |
| 48 | assert_eq!(id.replica.inner(), 1); |
| 49 | } |