cow-test-cli 0.5.2

Development and testing CLI for driving the CoW Protocol Solana settlement program.
1
2
3
4
5
6
7
8
9
10
11
pub fn print_summary(results: &[(&str, &dyn ToString)]) {
    let max_key_len = results
        .iter()
        .map(|(k, _)| k.len())
        .max()
        .unwrap_or_else(|| panic!("no summary data provided"));

    for (k, v) in results {
        println!("{:>max_key_len$} = {}", k, v.to_string())
    }
}