---
id: TASK-27
title: Improve unit test coverage for uncovered unit paths (llvm-cov 2026-03-03)
status: Done
assignee: []
created_date: '2026-03-03 09:14'
updated_date: '2026-03-03 10:53'
labels:
  - tests
  - coverage
dependencies: []
---

## Description

<!-- SECTION:DESCRIPTION:BEGIN -->
Improve unit test coverage for uncovered lines/branches identified by `cargo llvm-cov --lib --bins --text --show-missing-lines` run on 2026-03-03. Scope includes core/config, config/schema, core/exec, core/log, core/cmd, and main entrypoint paths that are currently uncovered in unit tests. Use only unit tests (no integration tests) and keep changes compatible with existing CLI behavior.
<!-- SECTION:DESCRIPTION:END -->

## Acceptance Criteria
<!-- AC:BEGIN -->
- [ ] #1 Subtasks created for each uncovered area in core/config + config/schema, core/exec + core/log, core/cmd (args/link/cache/clean), core/cmd (sysbuild image/run/flash/runners), and main entrypoint testability.
- [ ] #2 Unit tests cover the previously uncovered branches listed in the coverage report for those modules.
- [ ] #3 All unit tests pass via `cargo llvm-cov --lib --bins` (no integration tests).
<!-- AC:END -->

## Implementation Notes

<!-- SECTION:NOTES:BEGIN -->
Completed subtasks TASK-27.1 through TASK-27.5 covering schema/config, exec/log, cmd arg/link/cache/clean, sysbuild image/runners edge cases, and main entrypoint testability. All unit tests pass via `cargo llvm-cov --lib --bins` in latest run.
<!-- SECTION:NOTES:END -->
