Files
devvm/testdata/coverage/linux.txt
T
w3cjandClaude Opus 5.5 e6f64dae31 refactor(vm): one VM inventory per run
vm.Inventory (internal/vm/inventory.go) holds each project VM's state,
backend and Instance, read in one place: ReadStates for the states
alone, ReadInventory (UsedBackends or AllBackends) for the backends'
lists too, each within the host's list wait (30 s), with the backend's
Check saying why a list failed. It replaces Env.mounts, recordedVMs,
vm.List and vm.ToolsInUse, linkstate's clientStates listing, the
secret list's, Leftovers.Find's (and backendVMs), cli/space.go's two
(backendRows' list, vmFolders), images' state.Backends and sshconfig's
running list: sshconfig.Write takes the inventory's Running VMs.
state.ReadAll reads each VM folder on its own (only the inventory calls
it, a structure-test callers rule); state.Backends and Registry.Used go.

One failure policy:
- a backend that can't list fails a listing (Inventory.Err) only when
  some VM's state names it: devvm ls and the ssh config fail, and the
  ssh config stays as it was rather than lose that backend's entries;
  space and gc --orphans name it and leave its VMs alone;
- an unreadable vm.json is its own row: ls lists the VM with its name
  and status alone and warns (vm_state_unreadable); links, the secret
  list, rm VM and link targets leave it out; gc --orphans never takes it
  for an orphan; ToolsInUse and Mounts (images, gc, space, the SSH
  agent's mounted-key check) fail on it, naming the file;
- FolderOf is bounded (5 s): a folder on a hung share is there.

Mounts come from the states alone, stopped VMs and agents' folders
included, so the mounted-key check asks no backend. ui.Table shows every
cell through msg.OneLine, so ls's cells can't move the cursor or break
a row.

Docs: internals/overview's listing, troubleshooting's file devvm can't
read, ssh's mounted keys, contributing's owners table.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 02:30:53 -07:00

48 lines
1.2 KiB
Plaintext

# Each package's test coverage, in percent: the unit tests and the CLI tests together.
# mise run test fails when a package drops below its line; mise run coverage raises them.
cmd/devvm 100.0
internal/agentlogin 94.8
internal/backend 97.1
internal/backend/backendtest 74.4
internal/backend/lima 90.4
internal/backend/registry 100.0
internal/build 88.5
internal/cli 88.7
internal/cli/docgen 85.3
internal/daemon 97.9
internal/desktop 77.2
internal/devcontainer 96.8
internal/fetch 96.6
internal/from 91.3
internal/gitprotect 93.0
internal/hostgit 100.0
internal/hostsafety 87.5
internal/image 99.3
internal/jsonc 97.1
internal/msg 68.6
internal/msg/gen 93.3
internal/netpolicy 88.5
internal/paths 98.1
internal/platform 81.4
internal/ports 90.9
internal/project 98.4
internal/proxy 90.9
internal/redact 97.7
internal/secrets 91.8
internal/settings 96.2
internal/shell 100.0
internal/sshagent 84.2
internal/sshconfig 94.8
internal/state 94.0
internal/stubtest 81.4
internal/stubtest/stub 93.1
internal/stubtest/stubstate 91.2
internal/testbuild 100.0
internal/tools 89.7
internal/trust 94.1
internal/ubuntu 97.3
internal/ui 94.6
internal/vm 85.9
internal/vmname 100.0
internal/vmssh 88.7