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

Function UnknownAttrNames

eval/eval/create_list_step_test.cc:330–339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328}
329
330std::vector<std::string> UnknownAttrNames(const UnknownValue& v) {
331 std::vector<std::string> names;
332 names.reserve(v.attribute_set().size());
333
334 for (const auto& attr : v.attribute_set()) {
335 EXPECT_OK(attr.AsString().status());
336 names.push_back(attr.AsString().value_or("<empty>"));
337 }
338 return names;
339}
340
341TEST(CreateDirectListStep, MergeUnknowns) {
342 google::protobuf::Arena arena;

Callers 1

TESTFunction · 0.85

Calls 2

sizeMethod · 0.45
AsStringMethod · 0.45

Tested by

no test coverage detected