| 66 | } |
| 67 | |
| 68 | std::string OptionalValueDebugString( |
| 69 | const OpaqueValueDispatcher* absl_nonnull dispatcher, |
| 70 | OpaqueValueContent content) { |
| 71 | if (!static_cast<const OptionalValueDispatcher*>(dispatcher) |
| 72 | ->has_value(static_cast<const OptionalValueDispatcher*>(dispatcher), |
| 73 | content)) { |
| 74 | return "optional.none()"; |
| 75 | } |
| 76 | Value value; |
| 77 | static_cast<const OptionalValueDispatcher*>(dispatcher) |
| 78 | ->value(static_cast<const OptionalValueDispatcher*>(dispatcher), content, |
| 79 | &value); |
| 80 | return absl::StrCat("optional.of(", value.DebugString(), ")"); |
| 81 | } |
| 82 | |
| 83 | bool OptionalValueHasValue(const OptionalValueDispatcher* absl_nonnull, |
| 84 | OpaqueValueContent) { |
nothing calls this directly
no test coverage detected