MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / TEST

Function TEST

tools/descriptor_pool_builder_test.cc:35–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33namespace {
34
35TEST(DescriptorPoolBuilderTest, IncludesDefaults) {
36 DescriptorPoolBuilder builder;
37
38 auto pool = std::move(builder).Build();
39 EXPECT_THAT(
40 pool->FindMessageTypeByName("cel.expr.conformance.proto2.TestAllTypes"),
41 IsNull());
42
43 EXPECT_THAT(pool->FindMessageTypeByName("google.protobuf.Timestamp"),
44 NotNull());
45 EXPECT_THAT(pool->FindMessageTypeByName("google.protobuf.Any"), NotNull());
46}
47
48TEST(DescriptorPoolBuilderTest, AddTransitiveDescriptorSet) {
49 DescriptorPoolBuilder builder;

Callers

nothing calls this directly

Calls 4

AddFileDescriptorSetMethod · 0.80
AddFileDescriptorMethod · 0.80
BuildMethod · 0.45

Tested by

no test coverage detected