Commit c896239
committed
release: v0.10.0 — coverage push to 85%
Internal quality release. Raises pytest coverage from 74% (the
v0.9.0 baseline) to 85% via 397 new tests across 15 new test
files, with no source-code changes outside one small
`pyproject.toml` lint-config tweak.
Every new test targets a previously-uncovered code path in the
existing modules — no new tools, no new public APIs, no
behavioural changes. The shape of the push:
core/ command, platform, menu, host_service, systemd,
ui (banner, spinner, quiet mode, color override)
cli doctor full run, config show/path/edit/validate,
self-update no-update path, per-tool --help
java/ manager menu loop + _menu_install/upgrade/switch/
uninstall/remove_oracle branches, scanner
(scan + homebrew + sdkman + JAVA_HOME),
installer (5 lifecycle methods + verify +
reload_env), brew (prefix cache, lifecycle
wrappers, outdated_java JSON parse), oracle
(safe-roots refusal)
ssh/ manager keys_generate/rotate + agent_add +
known_hosts + perms + config + run() loop,
scanner (parse_agent_keys both formats,
parse_known_hosts, prune_known_hosts_duplicates,
audit_perms tree walk, _looks_like_private_key,
_read_pub_metadata edge cases)
adguard/ manager scan / verify / loopback DNS / ports_show
/ ports_set with API + yaml fallback, service +
logs + rollback + config_validate, ports
(psutil branch + cgroup unified vs legacy)
dns/ manager diagnose + flush + show + test + set +
reset + fix dispatcher, fixer (detect_interference,
step_detect_vpn, _make_backup_dir safety guard,
latest_backup_dir, rollback)
db/ _to_status_row helper edges, --on-host JSON
paths, Linux + macOS service-name resolution,
dump-to-file
gpg/ manager keys_generate/export, git_signing_show/
configure, agent_status, run() loop, missing-
git remediation path
docker_clean/ manager prune dispatch, quick dry-run, nuke
token, inspect, compose_down with/without -v,
schedule_emit to stdout vs file
tls/ revoke dry-run, renew failure exit propagation,
status with unparseable cert, cron-install
delegation
hosts/ _read_source URL + local + missing, _back_up
sudo fail/succeed, _atomic_write fallback chain,
run() interactive
web/nginx/ list empty, apply + remove severe-token gate,
generate flavors
Two minor non-test changes:
- `pyproject.toml` — adds `tests/* = ["RUF012"]` to ruff's
per-file-ignores. Test stubs use throwaway classes to mock
pydantic models; RUF012 (mutable class-attribute defaults
need ClassVar) is real-code advice that doesn't apply to
dataclass-style test fakes.
Test count: 630 → 1027 (+397). Coverage: 74% → 85% (1,266 lines
still uncovered, mostly UI rendering paths in adguard/manager
and interactive menu loops that branch on Menu.select choices
we can't deterministically enumerate without re-implementing
each manager's dispatch table).
Gates: pytest 1027 passed, ruff clean, mypy strict clean. No
new dependencies, no new optional extras.1 parent 60e8b85 commit c896239
19 files changed
Lines changed: 6743 additions & 2 deletions
File tree
- src/shimkit
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
9 | 69 | | |
10 | 70 | | |
11 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
120 | 126 | | |
121 | 127 | | |
122 | 128 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
0 commit comments