mirror of
https://github.com/devvmhq/devvm.git
synced 2026-12-01 21:36:40 -10:00
The data and config folders each hold a version file (state.Layout, 1). state.CheckLayout runs before every command but help, completion, version and devvm's hidden commands, under version.lock: the same version goes on, a missing file gets this devvm's, an older one runs the migrations in order (migrations(), empty now), and a newer one in either folder refuses with layout_newer; a file that isn't a version fails with layout_unchecked. made_by, devvm's version, is in vm.json's core fields (set when the VM is made, kept by later changes), image records and tool image records. It's passed from cli's devvmVersion through vm.NewEnv, tools.New and build.Env.Version. testdata/script/layout.txtar makes two network-policy VMs with a forwarded port, a link and a secret, and compares every path under the data and config folders with checked-in listings (macOS and Linux). devvm doctor warns about entries in vms/ that aren't VM folders (vms_stray) and VM folders without vm.json (vm_folder_stateless), changing nothing. Tests: TestMigrations, TestCheckLayout, TestCheckLayoutMigrationFails, TestVMFolderProblems, TestSkipsLayout; made_by checks in TestVMRoundTrip, TestImage, TestToolImage, TestUp, the build and tools tests and scripts; doctor's unit test and script. Docs: internals/overview (the layout version, made_by), using/space, using/settings, using/troubleshooting, internals/images, Contributing (changing the state layout). Co-Authored-By: Claude Opus 5.5 <[email protected]>
42 lines
1.0 KiB
Plaintext
42 lines
1.0 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/backend 95.7
|
|
internal/backend/backendtest 46.5
|
|
internal/backend/lima 88.4
|
|
internal/backend/registry 100.0
|
|
internal/backend/vmssh 87.7
|
|
internal/build 87.3
|
|
internal/cli 88.5
|
|
internal/cli/docgen 85.1
|
|
internal/daemon 97.9
|
|
internal/desktop 77.2
|
|
internal/devcontainer 96.8
|
|
internal/fetch 96.6
|
|
internal/from 91.3
|
|
internal/gitprotect 92.2
|
|
internal/hostgit 100.0
|
|
internal/image 97.5
|
|
internal/msg 68.6
|
|
internal/msg/gen 93.3
|
|
internal/netpolicy 87.4
|
|
internal/paths 97.8
|
|
internal/platform 80.9
|
|
internal/ports 90.0
|
|
internal/project 91.5
|
|
internal/proxy 88.3
|
|
internal/secrets 90.3
|
|
internal/settings 95.3
|
|
internal/shell 100.0
|
|
internal/sshagent 84.2
|
|
internal/sshconfig 88.3
|
|
internal/state 93.8
|
|
internal/stubtest 81.0
|
|
internal/testbuild 100.0
|
|
internal/tools 89.4
|
|
internal/trust 93.9
|
|
internal/ubuntu 92.5
|
|
internal/ui 94.4
|
|
internal/vm 85.6
|
|
internal/vmname 100.0
|