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

Function TEST

tensorflow/core/util/proto/proto_utils_test.cc:29–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27using ::testing::ContainsRegex;
28
29TEST(ParseTextFormatFromStringTest, Success) {
30 protobuf::DescriptorProto output;
31 TF_ASSERT_OK(ParseTextFormatFromString("name: \"foo\"", &output));
32 EXPECT_EQ(output.name(), "foo");
33}
34
35TEST(ParseTextFormatFromStringTest, ErrorOnInvalidSyntax) {
36 protobuf::DescriptorProto output;

Callers

nothing calls this directly

Calls 7

AddWarningMethod · 0.80
nameMethod · 0.65
codeMethod · 0.45
IgnoreErrorMethod · 0.45
AddErrorMethod · 0.45

Tested by

no test coverage detected