This repo has Go test files across the following packages:
internal/db — persistence, FTS5 search, query logicinternal/cli — command behavior and flag handlinginternal/output — text and JSON formattersinternal/tui — terminal UINo committed testdata/ directory.
The verification workflow is:
make test (go test ./...)make lintgo build ./...go vet ./...briefA full manual pass was executed across these areas:
--dbThese bugs were found and fixed during the manual pass:
brief get --id <id> without --include-deprecatedbrief get --limit 0 fell back to the default limit instead of rejecting the valuestderr instead of stdoutEarlier dogfood bugs also fixed in this repo:
post --stdin ignored piped inputput --stdin silently no-op’d--tag produced an SQL errorRepository-level checks:
go build ./...
go vet ./...
Installed CLI smoke checks:
brief --help
brief get --recent
brief category list
brief tag list
The dogfood/admin work in this repo showed that concurrent write commands against the same SQLite DB can hit SQLITE_BUSY. Serial writes are safer for operational scripts and manual maintenance.