Coverage / crates/flow/src/tier.rs 88.5%
23 of 26 lines run, 6 of 13 functions · run #190 on main · run missed
| 1 | //! What the sandbox tiers share, on every system a runner runs on: where a | |
| 2 | //! job's disks are kept, how a helper says a job never started, reading a | |
| 3 | //! job's output by lines, and this binary's hash for receipts. | |
| 4 | | |
| 5 | use ; | |
| 6 | use ; | |
| 7 | use ; | |
| 8 | ||
| 9 | /// Where the `n`th `ephemeral://disk` mount of a job keeps its files. | |
| 10 | 4× | |
| 11 | 4× | |
| 12 | 4× | |
| 13 | ||
| 14 | /// How the helper says the job never started, on its stderr. | |
| 15 | pub const FAILED: &str = "\u{1e}F "; | |
| 16 | ||
| 17 | 12× | pub |
| 18 | 12× | |
| 19 | 12× | |
| 20 | | |
| 21 | 21× | |
| 22 | | |
| 23 | 21× | |
| 24 | 12× | |
| 25 | | |
| 26 | 9× | |
| 27 | 9× | |
| 28 | 9× | |
| 29 | 9× | |
| 30 | 0× | |
| 31 | 9× | |
| 32 | | |
| 33 | | |
| 34 | | |
| 35 | 12× | |
| 36 | ||
| 37 | /// This binary, to start helpers from and hash: `/proc/self/exe` on Linux | |
| 38 | /// and Android (the running file, even after an update replaced its name), | |
| 39 | /// the path it was started from elsewhere (oxygenflow#83). | |
| 40 | 8× | |
| 41 | 8× | |
| 42 | 8× | |
| 43 | | |
| 44 | 0× | |
| 45 | | |
| 46 | 8× | |
| 47 | ||
| 48 | /// This binary's hash, which receipts name as the sandbox. | |
| 49 | 12× | pub |
| 50 | | |
| 51 | 12× | |
| 52 | 12× | |