feat: the window and the server say each new state in words; a proof cut short is made again; the proof does not mistake the books' own recovery for a changed head
- books ahead of the folder (as after a restore from an older backup) offer a new backup set beside the old one, at the person's request: books.back_up_now new_set, back-up --new-set, a button in the Backups window - a key file lost from a sealed destination stops backups and asks for the passphrase; plain is written only after an explicit removal, which the record keeps (a damaged record falls back to what the folder itself holds) - a restore that is not of the newest backup says so first, in the warning colour, with both dates and how many backups it passes over - a folder a sync service keeps (or may) is said in plain words at set-up and in the window: one computer only, kept offline, a second computer its own - a drill that finds only an older whole backup fails in words - a manifest whose proof was cut short is marked unproven and proven by the next backup, even one with nothing new; a saved backup file is proven whole before it is given its name - the proof compares the journal its pieces make with the head the manifest records before the books open, and lets opening add only after it - the restore tests are split from backups.rs to keep each under a minute; the clone-of-an-old-git-backup test builds the working tree without git Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
9ac47a3f10
commit
344b3b4abe
21 files changed
+2346
-690
No files matched your search
@@ -223,8 +223,17 @@ fn a_taken_number_or_name_is_never_replaced_on_a_disk_that_makes_no_links() {
|
||||
|
||||
const PASS: &str = "correct horse battery staple";
|
||||
|
||||
/// The count of derived keys is the process's: the tests that read it, and
|
||||
/// every test that derives one, take turns.
|
||||
static KEYS: std::sync::Mutex<()> = std::sync::Mutex::new(());
|
||||
|
||||
fn one_at_a_time() -> std::sync::MutexGuard<'static, ()> {
|
||||
KEYS.lock().unwrap_or_else(|e| e.into_inner())
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn sealed_pieces_are_spread_over_folders_as_the_plain_form_does() {
|
||||
let _turn = one_at_a_time();
|
||||
let dir = tempfile::tempdir().unwrap();
|
||||
let b = dir.path().join("book");
|
||||
let mut s = book(&b);
|
||||
@@ -295,6 +304,7 @@ fn set_header(header: &Path, edit: impl Fn(&mut serde_json::Value)) {
|
||||
|
||||
#[test]
|
||||
fn a_header_cannot_ask_for_more_than_a_few_times_what_this_program_spends() {
|
||||
let _turn = one_at_a_time();
|
||||
let dir = tempfile::tempdir().unwrap();
|
||||
let b = dir.path().join("book");
|
||||
let s = book(&b);
|
||||
@@ -330,6 +340,7 @@ fn a_header_cannot_ask_for_more_than_a_few_times_what_this_program_spends() {
|
||||
|
||||
#[test]
|
||||
fn a_header_that_was_changed_reads_as_damage_and_not_as_a_wrong_passphrase() {
|
||||
let _turn = one_at_a_time();
|
||||
let dir = tempfile::tempdir().unwrap();
|
||||
let b = dir.path().join("book");
|
||||
let s = book(&b);
|
||||
@@ -365,6 +376,7 @@ fn a_header_that_was_changed_reads_as_damage_and_not_as_a_wrong_passphrase() {
|
||||
|
||||
#[test]
|
||||
fn a_folder_of_sealed_sets_costs_one_key_derivation_per_setting_not_one_per_set() {
|
||||
let _turn = one_at_a_time();
|
||||
let dir = tempfile::tempdir().unwrap();
|
||||
let b = dir.path().join("book");
|
||||
let s = book(&b);
|
||||
|
||||
Reference in new issue
Block a user