edith
Clone
https://git.tahinli.com/Tahinli/edith.git
0 watching0 forksRust18.3 MiB978e685Tahinli3 months ago627 commits
| 1 | //! Where the real films are, on the machine that has them. |
| 2 | //! |
| 3 | //! A handful of tests are worth nothing against a fixture: a 4K HDR10 grade, a |
| 4 | //! header-stripped BluRay remux, a disc's PGS tracks. None of those can live in |
| 5 | //! this repository -- they are tens of gigabytes of somebody's library -- and |
| 6 | //! their paths are nobody's business but that machine's, so they are not in the |
| 7 | //! tree either. `real_library.toml` at the workspace root maps a logical key to |
| 8 | //! an absolute path; it is gitignored, and `real_library.toml.example` shows the |
| 9 | //! shape. Without it every test that asks here says so and passes. |
| 10 | //! |
| 11 | //! The format is the `key = "path"` subset of TOML, one per line, `#` comments: |
| 12 | //! enough for a path table and no dependency to parse. |
| 13 | |
| 14 | use PathBuf; |
| 15 | |
| 16 | /// The manifest, beside the workspace `Cargo.toml`. |
| 17 | const MANIFEST: &str = concat!; |
| 18 | |
| 19 | /// The file `key` names, if this machine is one that has it. |
| 20 | /// |
| 21 | /// [`None`] -- with the reason on stderr, in the skip wording the rest of these |
| 22 | /// tests use -- when the manifest is absent, when it does not name the key, or |
| 23 | /// when what it names is not there. A test's whole gate is therefore one line: |
| 24 | /// |
| 25 | /// ```no_run |
| 26 | /// let Some(film) = engine::real_library::film("hevc_4k_hdr") else { |
| 27 | /// return; |
| 28 | /// }; |
| 29 | /// ``` |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 49 | /// One `key = "value"` line, if it is this key's: comments and blank lines |
| 50 | /// answer [`None`], and so does any line whose value is not quoted. |
| 51 | |
| 52 | |
| 53 | |
| 54 | |
| 55 | |
| 56 | |
| 57 | |
| 58 | |
| 59 | |
| 60 | |
| 61 | |
| 62 | |
| 63 | |
| 64 | |
| 65 | |
| 66 | |
| 67 | |
| 68 | |
| 69 | |
| 70 | |
| 71 | |
| 72 | |
| 73 | |
| 74 | |
| 75 | |
| 76 | |
| 77 | |
| 78 | |
| 79 | |
| 80 | |
| 81 | |
| 82 | |
| 83 | |
| 84 | |
| 85 | |
| 86 | |
| 87 | |
| 88 | |
| 89 |