Coverage / crates/spectra-core/src/projects.rs 100.0%
32 of 32 lines run, 7 of 14 functions · run #36 on main · run missed
| 1 | //! Projects (spec §23.1): any kind of work a group of agents shares. A | |
| 2 | //! project has a name, a description, and optionally a folder and a link; | |
| 3 | //! Spectra records where the folder is and reads nothing inside it. The | |
| 4 | //! owner links projects (`project.linked`: one depends on another), which | |
| 5 | //! is what `to: "downstream"` follows. | |
| 6 | | |
| 7 | use crateEvent; | |
| 8 | use ; | |
| 9 | use Value as Json; | |
| 10 | use SqliteConnection; | |
| 11 | use Path; | |
| 12 | ||
| 13 | /// Kinds of event the owner signs about projects. | |
| 14 | pub const KINDS: & = &; | |
| 15 | ||
| 16 | /// A project's name from a folder: its name, lower-cased, made valid. | |
| 17 | 25× | |
| 18 | 25× | |
| 19 | 146× | |
| 20 | 25× | |
| 21 | ||
| 22 | /// Apply a project event to the tables. | |
| 23 | 42882× | pub async |
| 24 | 42882× | |
| 25 | 42882× | |
| 26 | 42882× | |
| 27 | 42882× | |
| 28 | 3566× | |
| 29 | 54× | |
| 30 | 54× | |
| 31 | 54× | |
| 32 | 54× | |
| 33 | 54× | |
| 34 | 54× | |
| 35 | 54× | |
| 36 | 54× | |
| 37 | | |
| 38 | 39316× | |
| 39 | 4× | |
| 40 | 4× | |
| 41 | 2× | |
| 42 | | |
| 43 | 2× | |
| 44 | | |
| 45 | 4× | |
| 46 | | |
| 47 | 39312× | |
| 48 | | |
| 49 | 39370× | |
| 50 | 42882× | |