Testing: transport layer has 0% unit test coverage (TCP, TLS, SSH) #131
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?
The three transport modules have zero code coverage from unit tests:
transport_tcp.c— 0% (111 lines, all uncovered)transport_tls.c— 0% (94 lines, all uncovered)transport_ssh.c— 0% (106 lines, all uncovered)All functions are completely untested:
server_create,client_connect,accept_loop,create_ssl_ctx,wrap_fd_with_ssl,client_connect_tls,parse_remote_dest,client_connect_ssh, etc.Root cause
Test files exist (
test_transport_tcp.c,test_transport_ssh.c,test_transport_tls.c) but they either:Suggested fix
server_create+client_connectwith loopbackset_socket_timeoutswith various valuesparse_remote_destwith valid/invalid SSH destinationscreate_ssl_ctxwith/without CA certwrap_fd_with_sslbasic wrappingLabels: testing, coverage, transport