viewer: proven read-only; its database check no longer creates SQLite files
check / check (push) Canceled after 0s
check / check (push) Canceled after 0s
tests/read_only.rs: with every file and folder of the books read-only on disk, the viewer loads, follows live, and renders every page (receipts included), and every file keeps its bytes, size, and mtime; on writable books nothing appears beside the database either. Found: with no writer running, the snapshot's read-only open of the WAL database had to create -wal/-shm (a write into the books) and failed on read-only books, showing a false "database unreadable". With no -wal file no writer has it open, so check_disk now reads it immutable. just mutants-gui sweeps only what the viewer must get right: the view model's numbers (books.rs) and their formatting (fmt.rs); 179 mutants. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GWVo7x3UHw5kwCUaWxiejX
This commit is contained in:
1 parent
13a52c5849
commit
fe9625502f
3 files changed
+219
-7
No files matched your search
@@ -94,11 +94,13 @@ mutants-mcp:
|
||||
mkdir -p {{mutants_tmp}}
|
||||
MCP_CASES=16 PROPTEST_MAX_SHRINK_ITERS=0 TMPDIR={{mutants_tmp}} cargo mutants -p ledger-mcp --test-package ledger-mcp -j 4 --timeout 600 -o mutants-mcp
|
||||
|
||||
# Mutation testing of the viewer's logic (formatting, file names, history,
|
||||
# search, ticks, the view model, the attention list; not the painting).
|
||||
# Mutation testing of the viewer where it matters: the numbers it shows
|
||||
# (the view model) and how it writes them (formatting). Its read-only
|
||||
# promise has its own test (tests/read_only.rs); search, history, ticks,
|
||||
# and the attention list are spec-tested, not swept.
|
||||
mutants-gui:
|
||||
mkdir -p {{mutants_tmp}}
|
||||
PROPTEST_MAX_SHRINK_ITERS=0 TMPDIR={{mutants_tmp}} cargo mutants -p ledger-gui --test-package ledger-gui -j 4 --timeout 60 -o mutants-gui -f crates/ledger-gui/src/fmt.rs -f crates/ledger-gui/src/export.rs -f crates/ledger-gui/src/nav.rs -f crates/ledger-gui/src/attention.rs -f crates/ledger-gui/src/books.rs -f crates/ledger-gui/src/palette.rs -f crates/ledger-gui/src/charts.rs
|
||||
PROPTEST_MAX_SHRINK_ITERS=0 TMPDIR={{mutants_tmp}} cargo mutants -p ledger-gui --test-package ledger-gui -j 4 --timeout 180 -o mutants-gui -f crates/ledger-gui/src/books.rs -f crates/ledger-gui/src/fmt.rs
|
||||
|
||||
# Benchmarks of the core's hot paths (no budget gates them yet)
|
||||
bench:
|
||||
|
||||
Reference in new issue
Block a user