Testing: config.c has only 33% coverage — protocol serialization untested #133
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?
src/shared/config.chas only 33% coverage (66/197 lines). The two most critical functions —config_send()andconfig_receive()— have zero hits. These functions serialize/deserialize the configuration over the wire, so bugs here cause protocol desync or silent data corruption.Also uncovered:
Suggested tests
config_send()+config_receive()round-trip — create Config, serialize to buffer, deserialize, verify all fields matchUse a memory buffer (pipe or socketpair) as the file descriptor to avoid actual network I/O.
Labels: testing, coverage, protocol