protobuf-src 2.1.1+27.1

Build system integration for libprotobuf.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use debug_proto::DebugMsg;
use googletest::prelude::*;

#[test]
fn test_debug() {
    let mut msg = DebugMsg::new();
    msg.set_id(1);
    msg.set_secret_user_data("password");

    assert_that!(format!("{msg:?}"), contains_substring("id: 1"));
    assert_that!(format!("{msg:?}"), not(contains_substring("password")));
}