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

Function CreateMap

eval/public/containers/internal_field_backed_map_impl_test.cc:51–58  ·  view source on GitHub ↗

Helper method. Creates simple pipeline containing Select step and runs it.

Source from the content-addressed store, hash-verified

49
50// Helper method. Creates simple pipeline containing Select step and runs it.
51std::unique_ptr<FieldBackedMapTestImpl> CreateMap(const TestMessage* message,
52 const std::string& field,
53 google::protobuf::Arena* arena) {
54 const google::protobuf::FieldDescriptor* field_desc =
55 message->GetDescriptor()->FindFieldByName(field);
56
57 return std::make_unique<FieldBackedMapTestImpl>(message, field_desc, arena);
58}
59
60TEST(FieldBackedMapImplTest, BadKeyTypeTest) {
61 TestMessage message;

Callers 1

TESTFunction · 0.70

Calls 2

FindFieldByNameMethod · 0.45
GetDescriptorMethod · 0.45

Tested by

no test coverage detected