Skip to content

[SUBISSUE #4] Increase Branch Coverage Across MM, VFS, Socket, and Loader Modules #261

Done

Description

@marcobuschini

Parent issue: #257

Baseline

  • Total project coverage: 60.6% lines (8,279/13,661), 42.6% branches (4,082/9,581)
  • Mid-tier modules with remaining uncovered error/edge branches: kernel/syscalls/SocketSyscalls.cpp (66%), MemorySyscalls.cpp (84%), kernel/mm/AddressSpace.cpp, kernel/fs/Vfs.cpp, kernel/fs/ext2/ext2.cpp, kernel/net/af_unix.cpp, kernel/loader/elf_loader.cpp.

Scope

  • Inspect gcovr uncovered line/branch reports for each module above and add targeted snitch host test cases for OOM, permission, alignment, boundary, and error-rollback branches.
  • Bring overall host-testable line coverage as close to 100% as practical (target >= 90% lines, >= 85% branches).

Acceptance Criteria

  • Measurable line and branch coverage increase verified via build/reports/cobertura.xml.
  • make clean-tests && make -j"$(nproc)" quality passes with zero warnings or ASan/UBSan errors.

Metadata

Metadata

Assignees

Labels

subissue

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions