| 12 | |
| 13 | template <typename TLeft, typename TRight> |
| 14 | bool Equals(const TLeft& lhs, const TRight& rhs) |
| 15 | { |
| 16 | auto lhsNull = !lhs.operator bool(); |
| 17 | auto rhsNull = !rhs.operator bool(); |
| 18 | if (lhsNull != rhsNull) { |
| 19 | return false; |
| 20 | } |
| 21 | if (lhsNull && rhsNull) { |
| 22 | return true; |
| 23 | } |
| 24 | return |
| 25 | lhs.AsStringBuf() == rhs.AsStringBuf() && |
| 26 | lhs.GetType() == rhs.GetType(); |
| 27 | } |
| 28 | |
| 29 | class TYsonStringHolder |
| 30 | : public TSharedRangeHolder |
no test coverage detected