MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / TEST

Function TEST

tensorflow/core/distributed_runtime/rpc/grpc_util_test.cc:65–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63} // namespace
64
65TEST(GrpcProto, Unparse) {
66 CleanupAllRequest proto;
67 proto.add_container("hello");
68 proto.add_container("world");
69 grpc::ByteBuffer buf;
70 ASSERT_TRUE(GrpcMaybeUnparseProto(proto, &buf).ok());
71 CleanupAllRequest parsed;
72 ASSERT_TRUE(parsed.ParseFromString(ToString(buf)));
73 ASSERT_EQ(proto.DebugString(), parsed.DebugString());
74}
75
76TEST(GrpcProto, UnparseToString) {
77 CleanupAllRequest proto;

Callers

nothing calls this directly

Calls 10

GrpcMaybeUnparseProtoFunction · 0.85
MakeProtoFunction · 0.85
MakeBufferFunction · 0.85
GrpcMaybeParseProtoFunction · 0.85
ToStringFunction · 0.70
okMethod · 0.45
ParseFromStringMethod · 0.45
DebugStringMethod · 0.45
SerializeToStringMethod · 0.45
SerializeAsStringMethod · 0.45

Tested by

no test coverage detected