Coverage / crates/spectra-core/src/attachments.rs 94.1%
16 of 17 lines run, 3 of 6 functions · run #34 on main · run missed
| 1 | //! Bytes kept beside the ledger, named by their BLAKE3 (spec §7.2): tool | |
| 2 | //! call arguments and results in full, so the audit is never truncated; | |
| 3 | //! retention drops old bodies and keeps the hashes (spec §22.1). | |
| 4 | | |
| 5 | use Result; | |
| 6 | use Path; | |
| 7 | ||
| 8 | /// Store `bytes` under `<data>/attachments/` and return their hash (hex). | |
| 9 | 86× | |
| 10 | 86× | |
| 11 | 86× | |
| 12 | 86× | |
| 13 | 86× | |
| 14 | 63× | |
| 15 | 63× | |
| 16 | 23× | |
| 17 | 86× | |
| 18 | 86× | |
| 19 | ||
| 20 | /// The bytes stored under `hash`, if they are still kept. | |
| 21 | 1× | |
| 22 | 64× | |
| 23 | 0× | |
| 24 | 1× | |
| 25 | 1× | |
| 26 | 1× | |