Coverage / crates/spectra-core/src/attachments.rs 94.1%
16 of 17 lines run, 3 of 6 functions · run #30 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 | 70× | |
| 10 | 70× | |
| 11 | 70× | |
| 12 | 70× | |
| 13 | 70× | |
| 14 | 54× | |
| 15 | 54× | |
| 16 | 16× | |
| 17 | 70× | |
| 18 | 70× | |
| 19 | ||
| 20 | /// The bytes stored under `hash`, if they are still kept. | |
| 21 | 1× | |
| 22 | 64× | |
| 23 | 0× | |
| 24 | 1× | |
| 25 | 1× | |
| 26 | 1× | |