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

Method MergeUnknownValues

eval/eval/attribute_utility.cc:133–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133UnknownValue 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

Callers 1

ReturnLogicResultFunction · 0.80

Calls 2

UnknownValueClass · 0.50
AddMethod · 0.45

Tested by

no test coverage detected