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

Method AssignEnum

eval/public/structs/field_access_impl.cc:436–446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

434 }
435
436 bool AssignEnum(const CelValue& cel_value) const {
437 int64_t value;
438 if (!cel_value.GetValue(&value)) {
439 return false;
440 }
441 if (!cel::internal::CheckedInt64ToInt32(value).ok()) {
442 return false;
443 }
444 static_cast<const Derived*>(this)->SetEnum(value);
445 return true;
446 }
447
448 bool AssignMessage(const google::protobuf::Message* message) const {
449 return static_cast<const Derived*>(this)->SetMessage(message);

Callers

nothing calls this directly

Calls 4

CheckedInt64ToInt32Function · 0.85
GetValueMethod · 0.45
okMethod · 0.45
SetEnumMethod · 0.45

Tested by

no test coverage detected