MCPcopy Create free account
hub / github.com/apache/thrift / must_write_uuid

Function must_write_uuid

lib/rs/src/protocol/binary.rs:1014–1020  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1012
1013 #[test]
1014 fn must_write_uuid() {
1015 let (_, mut o_prot) = test_objects(true);
1016 let uuid = uuid::Uuid::new_v4();
1017 assert!(o_prot.write_uuid(&uuid).is_ok());
1018 let buf = o_prot.transport.write_bytes();
1019 assert_eq!(&buf, uuid.as_bytes());
1020 }
1021
1022 #[test]
1023 fn must_round_trip_uuid() {

Callers

nothing calls this directly

Calls 2

test_objectsFunction · 0.70
write_bytesMethod · 0.45

Tested by

no test coverage detected