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

Method MapBoolFieldToValue

internal/json.cc:425–434  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

423 }
424
425 absl::Status MapBoolFieldToValue(
426 const google::protobuf::MapValueConstRef& value,
427 const google::protobuf::FieldDescriptor* absl_nonnull field,
428 google::protobuf::MessageLite* absl_nonnull result) {
429 ABSL_DCHECK_EQ(value.type(), field->cpp_type());
430 ABSL_DCHECK(!field->is_repeated());
431 ABSL_DCHECK_EQ(field->cpp_type(), FieldDescriptor::CPPTYPE_BOOL);
432 SetBoolValue(result, value.GetBoolValue());
433 return absl::OkStatus();
434 }
435
436 absl::Status MapInt32FieldToValue(
437 const google::protobuf::MapValueConstRef& value,

Callers

nothing calls this directly

Calls 2

typeMethod · 0.80
GetBoolValueMethod · 0.45

Tested by

no test coverage detected