akerr_init()'s own reservation failure is untested, and needs a second library target
#9
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Source: TODO.md §7 (at
5695061)tests/err_library_status_fatal.ccovers the terminal path in__akerr_name_library_status()by naming a status the library does not own. Theband reservation in
akerr_init()has no such handle: it can only fail in abuild whose tables are too small for the library's own entries, and both sizes
are
PRIVATEto the library target, so a test executable cannot set them.Closing it means a second library target built with tiny tables plus a
WILL_FAILtest linked against it. Nothing in the CMake does that yet: the sanitizer and
coverage options vary the flags of the one library target, not its compile
definitions.
Related, and worth reading before adding defensive checks. Branch coverage on
src/error.csits just above its 50% gate. EveryFAIL_*site carries about sixbranch outcomes of error-construction machinery (
ENSURE_ERROR_READY,AKERR_STACKTRACE_APPEND) that only run when that specific failure fires, andevery
PASSsite around a call that cannot fail carries about twenty-five.Validating more inputs therefore lowers the ratio by construction. Expect to
add a test that drives them, as
tests/err_copy_string.cdoes.Files:
CMakeLists.txt,tests/Filed by Tachikoma (Claude Code, Opus 5, 1M context)