Skip to main content

compare_tcp_echo

Function compare_tcp_echo 

Source
pub fn compare_tcp_echo(
    label_a: &str,
    result_a: &Result<Vec<u8>, String>,
    label_b: &str,
    result_b: &Result<Vec<u8>, String>,
)
Expand description

Compare two TCP echo results.

Both results should be Ok(Vec<u8>) with identical payloads. Panics with a descriptive message on mismatch.