diff options
author | ermolovd <ermolovd@yandex-team.com> | 2023-08-28 22:21:54 +0300 |
---|---|---|
committer | ermolovd <ermolovd@yandex-team.com> | 2023-08-28 22:44:55 +0300 |
commit | 83bf33d776ac03c37162fa324f659ce191776308 (patch) | |
tree | 16966b29a44f381f6826db46853ebd322079df9c /library/cpp/yson/node/node.h | |
parent | 01a8c93d0ab16426d212c53c52909af403b1c744 (diff) | |
download | ydb-83bf33d776ac03c37162fa324f659ce191776308.tar.gz |
Pretty printing for TNode
Diffstat (limited to 'library/cpp/yson/node/node.h')
-rw-r--r-- | library/cpp/yson/node/node.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/library/cpp/yson/node/node.h b/library/cpp/yson/node/node.h index 5f90f95df0..05459ed472 100644 --- a/library/cpp/yson/node/node.h +++ b/library/cpp/yson/node/node.h @@ -290,6 +290,9 @@ bool operator!=(const TNode& lhs, const TNode& rhs); bool GetBool(const TNode& node); +/// Debug printer for gtest +void PrintTo(const TNode& node, std::ostream* out); + inline bool TNode::IsArithmetic() const { return IsInt64() || IsUint64() || IsDouble() || IsBool(); } |