| 30 | namespace { |
| 31 | |
| 32 | absl::Status Validate(absl::Time time) { |
| 33 | if (time < cel::internal::MinTimestamp()) { |
| 34 | return absl::InvalidArgumentError("time below min"); |
| 35 | } |
| 36 | |
| 37 | if (time > cel::internal::MaxTimestamp()) { |
| 38 | return absl::InvalidArgumentError("time above max"); |
| 39 | } |
| 40 | return absl::OkStatus(); |
| 41 | } |
| 42 | |
| 43 | absl::Status CelValidateDuration(absl::Duration duration) { |
| 44 | if (duration < cel::internal::MinDuration()) { |
no test coverage detected