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

Function EncodeDurationToString

internal/proto_time_encoding.cc:77–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77absl::StatusOr<std::string> EncodeDurationToString(absl::Duration duration) {
78 google::protobuf::Duration d;
79 auto status = EncodeDuration(duration, &d);
80 if (!status.ok()) {
81 return status;
82 }
83 return google::protobuf::util::TimeUtil::ToString(d);
84}
85
86absl::Status EncodeTime(absl::Time time, google::protobuf::Timestamp* proto) {
87 CEL_RETURN_IF_ERROR(Validate(time));

Callers 1

ValueFromValueFunction · 0.85

Calls 3

EncodeDurationFunction · 0.85
ToStringFunction · 0.50
okMethod · 0.45

Tested by

no test coverage detected