| 354 | } |
| 355 | |
| 356 | bool AssignInt32(const CelValue& cel_value) const { |
| 357 | int64_t value; |
| 358 | if (!cel_value.GetValue(&value)) { |
| 359 | return false; |
| 360 | } |
| 361 | absl::StatusOr<int32_t> checked_cast = |
| 362 | cel::internal::CheckedInt64ToInt32(value); |
| 363 | if (!checked_cast.ok()) { |
| 364 | return false; |
| 365 | } |
| 366 | static_cast<const Derived*>(this)->SetInt32(*checked_cast); |
| 367 | return true; |
| 368 | } |
| 369 | |
| 370 | bool AssignUInt32(const CelValue& cel_value) const { |
| 371 | uint64_t value; |
nothing calls this directly
no test coverage detected