forked from lavina/lavina
14 lines
347 B
Rust
14 lines
347 B
Rust
use prost::Message;
|
|
|
|
pub mod proto {
|
|
use prost::Message;
|
|
include!(concat!(env!("OUT_DIR"), "/lavina.rs"));
|
|
|
|
#[test]
|
|
fn test_encode_get_nodes() {
|
|
let mut buf = vec![];
|
|
HandshakeRequest { node_id: 1, address: "kek".into() } .encode(&mut buf).unwrap();
|
|
assert_eq!(&buf, &[8, 1, 18, 3, 107, 101, 107]);
|
|
}
|
|
}
|