| 131 | } |
| 132 | |
| 133 | UnknownValue AttributeUtility::MergeUnknownValues( |
| 134 | const UnknownValue& left, const UnknownValue& right) const { |
| 135 | // Empty unknown value may be used as a sentinel in some tests so need to |
| 136 | // distinguish unset (nullopt) and empty(engaged empty value). |
| 137 | AttributeSet attributes; |
| 138 | FunctionResultSet function_results; |
| 139 | attributes.Add(left.attribute_set()); |
| 140 | function_results.Add(left.function_result_set()); |
| 141 | attributes.Add(right.attribute_set()); |
| 142 | function_results.Add(right.function_result_set()); |
| 143 | |
| 144 | return UnknownValue( |
| 145 | cel::Unknown(std::move(attributes), std::move(function_results))); |
| 146 | } |
| 147 | |
| 148 | // Creates merged UnknownAttributeSet. |
| 149 | // Scans over the args collection, determines if there matches to unknown |
no test coverage detected