Coverage / crates/hub/src/levels.rs 100.0%
32 of 32 lines run, 7 of 14 functions · run #539 on main · run missed
| 1 | //! The three levels settings live at, site, organisation and repository, | |
| 2 | //! and how a repository sees the levels above it. Shared by AI assistants | |
| 3 | //! (§13.4) and Flow variables (§13.2). | |
| 4 | | |
| 5 | use cratePool; | |
| 6 | ||
| 7 | /// Which level a setting belongs to. | |
| 8 | | |
| 9 | | |
| 10 | | |
| 11 | | |
| 12 | | |
| 13 | | |
| 14 | ||
| 15 | | |
| 16 | 2645× | |
| 17 | 2645× | |
| 18 | 1493× | |
| 19 | 177× | |
| 20 | 975× | |
| 21 | | |
| 22 | 2645× | |
| 23 | | |
| 24 | 2645× | |
| 25 | 2645× | |
| 26 | 1493× | |
| 27 | 1152× | |
| 28 | | |
| 29 | 2645× | |
| 30 | | |
| 31 | ||
| 32 | /// A level as a settings page addresses it. | |
| 33 | | |
| 34 | | |
| 35 | | |
| 36 | | |
| 37 | | |
| 38 | | |
| 39 | | |
| 40 | ||
| 41 | | |
| 42 | 310× | |
| 43 | 310× | |
| 44 | 310× | |
| 45 | | |
| 46 | 95× | |
| 47 | 95× | |
| 48 | 95× | |
| 49 | | |
| 50 | 411× | |
| 51 | 411× | |
| 52 | 411× | |
| 53 | | |
| 54 | ||
| 55 | /// The levels above a scope, outermost first: the site, then the | |
| 56 | /// organisation when the owner is one. | |
| 57 | 1473× | pub async |
| 58 | 1473× | |
| 59 | 1473× | |
| 60 | 393× | |
| 61 | 124× | |
| 62 | | |
| 63 | 956× | |
| 64 | 956× | |
| 65 | 50× | |
| 66 | 906× | |
| 67 | | |
| 68 | | |
| 69 | 1473× | |
| 70 | 1473× | |